Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.06ms] Passed 4 tests
Server-side resources used by Remote Dashboard Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.76 ▼5.67 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.55 ▼13.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.53 ▲2.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.67 ▼3.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.71 ▲2.75 |
Server storage [IO: ▲4.32MB] [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: 764 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Remote Dashboard Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.27 ▲0.13 | 1.76 ▼0.07 | 38.25 ▼4.81 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.02 | 94.38 ▲2.90 | 41.92 ▲0.68 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.07 | 39.44 ▼2.81 | 35.81 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.00 ▼0.17 | 678.11 ▲67.19 | 56.81 ▲3.80 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.14 ▼0.07 | 102.50 ▲3.46 | 41.89 ▼1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 209× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/remote-dashboard-widget/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Object.php:8
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/remote-dashboard-widget/vendor/cmb2/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIFilter' not found in wp-content/plugins/remote-dashboard-widget/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableResources.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/remote-dashboard-widget/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/remote-dashboard-widget/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Nofollow.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef_HTML_Nmtokens' not found in wp-content/plugins/remote-dashboard-widget/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Class.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIFilter_DisableExternal' not found in wp-content/plugins/remote-dashboard-widget/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php:3
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/remote-dashboard-widget/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Image.php:8
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/remote-dashboard-widget/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv4.php:7
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/remote-dashboard-widget/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 83% 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
Attributes that need to be fixed:
- License uri: Invalid url: "GPLv2"
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in remote-dashboard-widget/assets to your readme.txt
remote-dashboard-widget/dashboard-widget.php 77% from 13 tests
Analyzing the main PHP file in "Remote Dashboard Widget" version 0.0.30
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("remote-dashboard-widget.php" instead of "dashboard-widget.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin72,811 lines of code in 481 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 311 | 5,529 | 17,006 | 25,456 |
JSON | 4 | 0 | 0 | 6,778 |
CSS | 14 | 258 | 1,191 | 4,591 |
JavaScript | 8 | 362 | 584 | 1,434 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 5 | 261 | 0 | 791 |
SVG | 1 | 0 | 1 | 26 |
INI | 1 | 1 | 1 | 1 |
PHP code 50% from 2 tests
An short overview of 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 232)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 14.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 539.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 232.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 311 | |
▷ Abstract classes | 24 | 7.72% |
▷ Concrete classes | 287 | 92.28% |
▷ Final classes | 0 | 0.00% |
Methods | 1,352 | |
▷ Static methods | 157 | 11.61% |
▷ Public methods | 1,084 | 80.18% |
▷ Protected methods | 174 | 12.87% |
▷ Private methods | 94 | 6.95% |
Functions | 43 | |
▷ Named functions | 38 | 88.37% |
▷ Anonymous functions | 5 | 11.63% |
Constants | 102 | |
▷ Global constants | 10 | 9.80% |
▷ Class constants | 92 | 90.20% |
▷ Public constants | 92 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/cmb2/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |