Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'mid_create_plugin_database_table' not found or invalid function name
Server metrics [RAM: ▲0.26MB] [CPU: ▼7.26ms] Passed 4 tests
A check of server-side resources used by WP Gratify-Socialproofing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 38.74 ▼4.10 |
Dashboard /wp-admin | 3.61 ▲0.30 | 46.00 ▼1.03 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 47.37 ▲1.85 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 71.15 ▼22.15 |
Media Library /wp-admin/upload.php | 3.47 ▲0.23 | 31.80 ▼1.75 |
All /wp-admin/admin.php?page=wp_grv_sp_slug | 3.48 | 33.92 |
Settings /wp-admin/admin.php?page=wp-grv-sp-settings-menu | 3.39 | 33.74 |
Add New /wp-admin/admin.php?page=wp-grv-sp-add-new-menu | 3.48 | 34.34 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Gratify-Socialproofing
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,107 ▲361 | 15.58 ▲0.97 | 12.50 ▲10.81 | 40.89 ▼8.32 |
Dashboard /wp-admin | 2,381 ▲196 | 6.47 ▲1.56 | 130.22 ▲15.24 | 39.25 ▼4.32 |
Posts /wp-admin/edit.php | 2,287 ▲198 | 3.45 ▲1.41 | 55.69 ▲17.13 | 34.58 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.36 ▲0.01 | 657.54 ▼40.89 | 30.57 ▼28.43 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.20 ▼0.00 | 82.77 ▼20.22 | 44.27 ▲0.40 |
All /wp-admin/admin.php?page=wp_grv_sp_slug | 1,348 | 3.96 | 68.66 | 82.70 |
Settings /wp-admin/admin.php?page=wp-grv-sp-settings-menu | 1,548 | 3.79 | 61.60 | 87.69 |
Add New /wp-admin/admin.php?page=wp-grv-sp-add-new-menu | 1,244 | 3.97 | 49.93 | 33.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-grv-sp-settings-menu
- > Notice in wp-content/plugins/wp-gratify-socialproofing/pages/wp-gratify-settings-page.php+82
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gratify-socialproofing/wp-grv-sp-tbl-operations/class-wp-grv-sp-tbl-operation.php:163
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gratify-socialproofing/wp-grv-sp-social-proofing/class-wp-grv-sp-social-proofing-ajax.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gratify-socialproofing/class-wp-gratify-social-proofing-meta-box.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gratify-socialproofing/class-wp-gratify-social-proofing-meta-box.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gratify-socialproofing/wp-grv-sp-tbl-operations/class-wp-grv-sp-settings-tbl-operation.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wp_grv_sp_slug
- > Network (severe)
wp-content/plugins/wp-gratify/assets/css/admin/wp-grv-loader/wp-grv-delete-success-icon.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wp_grv_sp_slug
- > Network (severe)
wp-content/plugins/wp-gratify/assets/css/admin/wp-grv-loader/wp-grv-delete-loader-icon.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-grv-sp-add-new-menu
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-gratify-socialproofing//assets/js/admin/wp-grv-sp-script-back-end.js?ver=1.0.0:72:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-grv-sp-add-new-menu
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-gratify-socialproofing//assets/js/admin/wp-grv-sp-backend-ajax-script.js?ver=1.0.0:47:38)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-grv-sp-add-new-menu
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in wp-gratify-socialproofing/assets to your readme.txt
wp-gratify-socialproofing/class-wp-gratify-social-proofing.php 92% from 13 tests
The main PHP file in "WP Gratify-Socialproofing" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-gratify-socialproofing.php" instead of "class-wp-gratify-social-proofing.php")
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
There were no executable files found in this plugin4,739 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 51 | 127 | 2,227 |
JavaScript | 8 | 343 | 609 | 1,815 |
PHP | 8 | 23 | 86 | 696 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 6.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 21 | 100.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/external/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/external/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/external/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/external/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/external/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |