Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼12.61ms] Passed 4 tests
Analyzing server-side resources used by Gravity Forms Directory
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.27 ▼5.02 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.69 ▼19.65 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.72 ▲2.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.59 ▼23.18 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.55 ▼2.58 |
Server storage [IO: ▲4.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 312 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Gravity Forms Directory
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼1.01 | 1.58 ▼0.11 | 44.34 ▲3.67 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.96 | 107.32 ▲3.61 | 42.37 ▼0.04 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.05 | 39.16 ▲5.44 | 35.26 ▲4.07 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.70 ▼5.42 | 648.44 ▼37.75 | 53.12 ▼0.33 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.16 ▼0.08 | 97.84 ▼2.60 | 43.12 ▼0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gravity-forms-addons/includes/views/html-entry-detail.php
- > /wp-content/plugins/gravity-forms-addons/includes/class-select-directory-columns.php
- > /wp-content/plugins/gravity-forms-addons/includes/views/html-field-ids.php
- > /wp-content/plugins/gravity-forms-addons/includes/entry-details.php
- 35× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: Form in wp-content/plugins/gravity-forms-addons/includes/views/html-entry-detail.php on line 50
- > PHP Notice
Undefined variable: titleshow in wp-content/plugins/gravity-forms-addons/includes/views/html-gf-directory-shortcode.php on line 72
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/gravity-forms-addons/includes/views/html-gravityview-info-admin.php:98
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravity-forms-addons/includes/gravity-forms-referrer.php:95
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gravity-forms-addons/includes/views/template-row.php:289
- > PHP Notice
Undefined variable: search_query in wp-content/plugins/gravity-forms-addons/includes/views/template-row.php on line 284
- > PHP Notice
Undefined variable: entrydetailtitle in wp-content/plugins/gravity-forms-addons/includes/views/html-entry-detail.php on line 15
- > PHP Notice
Undefined variable: Form in wp-content/plugins/gravity-forms-addons/includes/views/html-entry-detail.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_print_styles() in wp-content/plugins/gravity-forms-addons/includes/views/html-select-column-page.php:16
- > PHP Notice
Undefined variable: lead_count in wp-content/plugins/gravity-forms-addons/includes/views/html-gf-directory-shortcode.php on line 127
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Approving directory entries is very easy), #2 (When using the Form Editor, your form fields will have a Directory tab for easily modifying your display options.), #3 (This plugin adds an Edit link to Gravity Form entries), #4 (Insert a directory), #5 (How the Gravity Forms widget appears on the widgets page), #6 (The Gravity Forms Addons settings page, found in the Forms > Directory & Addons menu link), #7 (How the Gravity Forms 'Add Fields' boxes look after plugin is activated)
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
gravity-forms-addons/gravity-forms-addons.php Passed 13 tests
The entry point to "Gravity Forms Directory" version 4.2 is a PHP file that has certain tags in its header comment area
63 characters long description:
Turn Gravity Forms into a great WordPress directory...and more!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin121,506 lines of code in 238 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 86 | 2,304 | 375 | 97,141 |
JavaScript | 85 | 1,258 | 2,146 | 10,987 |
PHP | 22 | 1,003 | 850 | 4,895 |
CSS | 25 | 264 | 414 | 3,694 |
PO File | 5 | 1,120 | 1,128 | 3,014 |
JSON | 12 | 15 | 0 | 1,047 |
Markdown | 2 | 226 | 0 | 483 |
LESS | 1 | 43 | 44 | 245 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 342.00 |
Average method complexity | 5.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 93 | 76.23% |
▷ Public methods | 112 | 91.80% |
▷ Protected methods | 1 | 0.82% |
▷ Private methods | 9 | 7.38% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
32 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 48.44KB | 14.83KB | ▼ 69.38% |
bower_components/colorbox/example1/images/overlay.png | 0.11KB | 0.15KB | 0.00% |
bower_components/colorbox/example5/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
bower_components/jquery.tablesorter/addons/pager/icons/prev.png | 0.73KB | 0.73KB | 0.00% |
bower_components/jquery.tablesorter/docs/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |