Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.59MB] [CPU: ▼47.84ms] Passed 4 tests
Server-side resources used by MG Post Contributors
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 16.36 ▼29.82 |
Dashboard /wp-admin | 3.43 ▲0.09 | 19.49 ▼46.02 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 24.12 ▼32.81 |
Add New Post /wp-admin/post-new.php | 3.43 ▼2.46 | 20.38 ▼82.72 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 17.44 ▼17.58 |
Structure /wp-admin/admin.php?page=mgpc_options&tab=3 | 3.43 | 24.30 |
Import / Export /wp-admin/admin.php?page=mgpc_options&tab=12 | 3.43 | 18.49 |
Styling /wp-admin/admin.php?page=mgpc_options&tab=6 | 3.43 | 17.74 |
Our Plugins /wp-admin/admin.php?page=mgpc_options&tab=11 | 3.43 | 19.05 |
Basic /wp-admin/admin.php?page=mgpc_options&tab=0 | 3.43 | 25.64 |
Advanced Options /wp-admin/admin.php?page=mgpc_options&tab=10 | 3.43 | 24.80 |
Server storage [IO: ▲8.81MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 505 new files
Database: no new tables, 9 new options
New WordPress options |
---|
redux-framework-tracking |
mgpc-transients |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
mgpc |
Browser metrics Passed 4 tests
A check of browser resources used by MG Post Contributors
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲152 | 14.71 ▲0.36 | 2.40 ▲0.69 | 42.93 ▼1.47 |
Dashboard /wp-admin | 2,272 ▲92 | 5.53 ▼0.05 | 86.23 ▼6.24 | 42.20 ▼2.37 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 2.23 ▲0.22 | 33.28 ▼10.09 | 40.27 ▲3.80 |
Add New Post /wp-admin/post-new.php | 6,311 ▲4,782 | 18.73 ▼4.71 | 929.03 ▲318.03 | 74.35 ▲19.70 |
Media Library /wp-admin/upload.php | 1,481 ▲78 | 4.35 ▲0.17 | 96.85 ▼7.64 | 45.69 ▲4.12 |
Structure /wp-admin/admin.php?page=mgpc_options&tab=3 | 5,844 | 6.08 | 127.23 | 147.30 |
Import / Export /wp-admin/admin.php?page=mgpc_options&tab=12 | 5,818 | 6.09 | 114.85 | 110.92 |
Styling /wp-admin/admin.php?page=mgpc_options&tab=6 | 5,847 | 6.07 | 102.88 | 121.73 |
Our Plugins /wp-admin/admin.php?page=mgpc_options&tab=11 | 5,839 | 5.91 | 111.94 | 106.11 |
Basic /wp-admin/admin.php?page=mgpc_options&tab=0 | 5,844 | 6.01 | 110.11 | 119.87 |
Advanced Options /wp-admin/admin.php?page=mgpc_options&tab=10 | 6,062 | 7.24 | 190.41 | 182.93 |
Uninstaller [IO: ▲0.16MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/mg-post-contributors/framework/core/extensions/customizer/extension_customizer.php+358
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- mgpc
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- mgpc-transients
- theysaidso_admin_options
- redux-framework-tracking
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 36 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mgpc_options&tab=10
- > Warning in wp-content/plugins/mg-post-contributors/framework/core/extensions/customizer/extension_customizer.php+442
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- 2196 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mgpc_options&tab=10
- > Notice in wp-content/plugins/mg-post-contributors/framework/core/inc/scssphp/src/Compiler.php+2077
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mg-post-contributors/framework/core/inc/p.php
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/mg-post-contributors/framework/core/extensions/customizer/extension_customizer.php on line 358
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mg-post-contributors/framework/loader.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mg-post-contributors/admin/actions.php:3
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/mg-post-contributors/framework/core/extensions/customizer/extension_customizer.php on line 442
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mg-post-contributors/admin/user_profile.php:10
- > PHP Notice
Undefined variable: header in wp-content/plugins/mg-post-contributors/framework/core/inc/p.php on line 219
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/mg-post-contributors/framework/core/inc/scssphp/src/Formatter/Compact.php:22
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/mg-post-contributors/framework/core/extensions/customizer/extension_customizer.php on line 423
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/mg-post-contributors/framework/core/inc/scssphp/src/Formatter/Expanded.php:22
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Compiler' not found in wp-content/plugins/mg-post-contributors/framework/core/inc/scssphp/classmap.php:18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% 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 lack descriptions #10, #6, #7, #8, #9 in mg-post-contributors/assets to your readme.txt
- Donate link: Invalid URI found ("")
mg-post-contributors/mg-post-contributors.php 85% from 13 tests
The main PHP file in "MG Post Contributors" ver. 1.3.... adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.3....")
- Description: The description should be shorter than 140 characters (currently 193 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin51,250 lines of code in 376 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 4,605 | 6,429 | 17,308 |
JavaScript | 161 | 3,025 | 2,241 | 14,282 |
JSON | 2 | 0 | 0 | 4,963 |
Sass | 34 | 671 | 37 | 4,811 |
CSS | 49 | 340 | 181 | 4,696 |
LESS | 29 | 344 | 137 | 3,677 |
SVG | 2 | 0 | 0 | 829 |
PO File | 1 | 223 | 293 | 544 |
Markdown | 2 | 38 | 0 | 85 |
Bourne Shell | 1 | 24 | 0 | 55 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 39.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 829.00 |
Average method complexity | 6.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 89 | |
▷ Abstract classes | 1 | 1.12% |
▷ Concrete classes | 88 | 98.88% |
▷ Final classes | 0 | 0.00% |
Methods | 652 | |
▷ Static methods | 34 | 5.21% |
▷ Public methods | 393 | 60.28% |
▷ Protected methods | 227 | 34.82% |
▷ Private methods | 32 | 4.91% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
66 PNG files occupy 1.19MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/intro-mg-post-contributors.png | 11.43KB | 5.19KB | ▼ 54.63% |
images/help-exclude-roles.png | 34.40KB | 16.00KB | ▼ 53.47% |
images/help-structure-settings.png | 26.21KB | 12.50KB | ▼ 52.29% |
images/view-verticle-200.png | 5.67KB | 3.07KB | ▼ 45.91% |
framework/core/assets/img/2-col-portfolio.png | 1.02KB | 0.15KB | ▼ 85.07% |