Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.39ms] Passed 4 tests
Server-side resources used by Themedy Toolbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.26 ▼4.84 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.55 ▼3.15 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.49 ▲6.37 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.26 ▲4.14 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 35.71 ▲5.42 |
Themedy ToolBox /wp-admin/tools.php?page=themedy-toolbox | 3.26 | 31.74 |
Themedy Replicate /wp-admin/options-general.php?page=themedy-replicate | 3.26 | 31.61 |
Server storage [IO: ▲1.28MB] [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: 157 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Themedy Toolbox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲219 | 13.59 ▼1.00 | 5.76 ▲3.87 | 41.69 ▼5.76 |
Dashboard /wp-admin | 2,222 ▲37 | 4.88 ▼1.00 | 110.54 ▲2.86 | 41.32 ▼7.25 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.05 | 39.46 ▲1.22 | 35.61 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,554 ▲21 | 18.50 ▼4.76 | 606.32 ▼55.91 | 35.12 ▼27.64 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.24 ▲0.05 | 95.83 ▲0.76 | 42.03 ▲1.43 |
Themedy ToolBox /wp-admin/tools.php?page=themedy-toolbox | 860 | 2.03 | 22.60 | 24.31 |
Themedy Replicate /wp-admin/options-general.php?page=themedy-replicate | 824 | 2.05 | 24.52 | 26.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
Please take a closer look at the following
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined index: multiple_properties in wp-content/plugins/themedy-toolbox/custom-css/custom-css/csstidy/data-wp.inc.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/themedy-toolbox/compatibility/themedy-visual-designer/shortcode-generator.php:28
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/themedy-toolbox/custom-css/custom-css/csstidy/data-wp.inc.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-toolbox/demo-options/options-manager.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-toolbox/custom-css/custom-css.php:27
- > PHP Notice
Undefined index: unit_values in wp-content/plugins/themedy-toolbox/custom-css/custom-css/csstidy/data-wp.inc.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-toolbox/compatibility/themedy-visual-designer/themedy-visual-designer.php:17
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/themedy-toolbox/custom-css/custom-css/csstidy/class.csstidy.php on line 854
- > PHP Notice
Undefined index: color_values in wp-content/plugins/themedy-toolbox/custom-css/custom-css/csstidy/data-wp.inc.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-toolbox/options.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: genesis, thesis, themedy, shortcodes
themedy-toolbox/themedy-toolbox.php Passed 13 tests
The main PHP script in "Themedy Toolbox" version 1.0.14 is automatically included on every request by WordPress
62 characters long description:
Shortcodes and tools to extend your Themedy site even further.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin16,510 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 2,513 | 2,466 | 11,595 |
CSS | 26 | 296 | 140 | 2,101 |
JavaScript | 18 | 155 | 67 | 2,097 |
SVG | 1 | 0 | 0 | 404 |
XML | 1 | 136 | 16 | 213 |
PO File | 1 | 35 | 81 | 100 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 148)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 119.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 446.00 |
Average method complexity | 5.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 148.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 544 | |
▷ Static methods | 93 | 17.10% |
▷ Public methods | 220 | 40.44% |
▷ Protected methods | 324 | 59.56% |
▷ Private methods | 0 | 0.00% |
Functions | 132 | |
▷ Named functions | 132 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 10 | 45.45% |
▷ Class constants | 12 | 54.55% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
76 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
compatibility/themedy-visual-designer/images/shortcode-icon.png | 0.42KB | 0.36KB | ▼ 14.12% |
compatibility/themedy-visual-designer/images/colorpicker/colorpicker_hsb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
compatibility/themedy-visual-designer/images/icon-note.png | 3.30KB | 0.66KB | ▼ 80.07% |
images/social-icons/foursquare.png | 2.00KB | 1.74KB | ▼ 12.76% |
images/social-icons/gowalla.png | 1.57KB | 1.38KB | ▼ 12.55% |