84% themedy-toolbox

Code Review | Themedy Toolbox

WordPress plugin Themedy Toolbox scored84%from 54 tests.

About plugin

  • Plugin page: themedy-toolbox
  • Plugin version: 1.0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 19, 2014
  • Latest release: Aug 27, 2018
  • Number of updates: 144
  • Update frequency: every 10.0 days
  • Top authors: mahodder (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /20,626 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.26 ▼4.84
Dashboard /wp-admin3.37 ▲0.0746.55 ▼3.15
Posts /wp-admin/edit.php3.49 ▲0.1352.49 ▲6.37
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.26 ▲4.14
Media Library /wp-admin/upload.php3.30 ▲0.0635.71 ▲5.42
Themedy ToolBox /wp-admin/tools.php?page=themedy-toolbox3.2631.74
Themedy Replicate /wp-admin/options-general.php?page=themedy-replicate3.2631.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲21913.59 ▼1.005.76 ▲3.8741.69 ▼5.76
Dashboard /wp-admin2,222 ▲374.88 ▼1.00110.54 ▲2.8641.32 ▼7.25
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0539.46 ▲1.2235.61 ▼0.30
Add New Post /wp-admin/post-new.php1,554 ▲2118.50 ▼4.76606.32 ▼55.9135.12 ▼27.64
Media Library /wp-admin/upload.php1,407 ▲194.24 ▲0.0595.83 ▲0.7642.03 ▲1.43
Themedy ToolBox /wp-admin/tools.php?page=themedy-toolbox8602.0322.6024.31
Themedy Replicate /wp-admin/options-general.php?page=themedy-replicate8242.0524.5226.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP202,5132,46611,595
CSS262961402,101
JavaScript18155672,097
SVG100404
XML113616213
PO File13581100

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 code0.46
Average class complexity119.33
▷ Minimum class complexity1.00
▷ Maximum class complexity446.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity148.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods544
▷ Static methods9317.10%
▷ Public methods22040.44%
▷ Protected methods32459.56%
▷ Private methods00.00%
Functions132
▷ Named functions132100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants1045.45%
▷ Class constants1254.55%
▷ Public constants12100.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
FileSize - originalSize - compressedSavings
compatibility/themedy-visual-designer/images/shortcode-icon.png0.42KB0.36KB▼ 14.12%
compatibility/themedy-visual-designer/images/colorpicker/colorpicker_hsb_b.png0.95KB0.76KB▼ 19.48%
compatibility/themedy-visual-designer/images/icon-note.png3.30KB0.66KB▼ 80.07%
images/social-icons/foursquare.png2.00KB1.74KB▼ 12.76%
images/social-icons/gowalla.png1.57KB1.38KB▼ 12.55%