74% themedy-widgets

Code Review | Themedy Widgets

WordPress plugin Themedy Widgets scored74%from 54 tests.

About plugin

  • Plugin page: themedy-widgets
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.2-5.2.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2015
  • Latest release: Jul 3, 2019
  • Number of updates: 21
  • Update frequency: every 74.3 days
  • Top authors: mahodder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,278 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.76MB] [CPU: ▼57.08ms] Passed 4 tests

Server-side resources used by Themedy Widgets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.266.64 ▼38.19
Dashboard /wp-admin2.27 ▼1.0811.38 ▼53.88
Posts /wp-admin/edit.php2.27 ▼1.0910.48 ▼40.22
Add New Post /wp-admin/post-new.php2.27 ▼3.629.87 ▼96.02
Media Library /wp-admin/upload.php2.27 ▼0.9611.30 ▼27.86

Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 18 new options
New WordPress options
widget_social_list_widget
widget_themedy_ad300_widget
widget_recent-posts
widget_themedy_ad620_widget
widget_themedy_video_widget
widget_themedy_ad120x60_widget
widget_themedy_ad300x600_widget
theysaidso_admin_options
widget_themedy_ad468_widget
widget_featured-post
...

Browser metrics Passed 4 tests

A check of browser resources used by Themedy Widgets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.16 ▼1.591.81 ▼0.1844.84 ▲3.01
Dashboard /wp-admin2,224 ▲184.86 ▼1.05103.97 ▼0.8535.87 ▼10.43
Posts /wp-admin/edit.php2,079 ▼212.01 ▲0.0038.87 ▼3.1731.74 ▼9.06
Add New Post /wp-admin/post-new.php1,540 ▲923.08 ▼0.10629.66 ▲31.2261.28 ▲0.97
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.01116.15 ▲1.7753.67 ▲4.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/themedy-widgets/includes/widgets/featured-post-widget.php+160
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 18 options
    • db_upgraded
    • widget_themedy_ad300_widget
    • widget_themedy_video_widget
    • widget_themedy_tab_widget
    • widget_themedy_flickr_widget
    • widget_social_list_widget
    • widget_featured-post
    • widget_themedy_ad300x600_widget
    • widget_themedy_ad120x240_widget
    • can_compress_scripts
    • ...

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 | 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
Please fix the following
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad468x60.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad620x100.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad120x240.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themedy-widgets/includes/widgets/widget-social.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad300x250.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-tabbed.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-video.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/featured-post-widget.php:160
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-flickr.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themedy-widgets/includes/widgets/widget-ad300x600.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: themedy, genesis, ad widget, vimeo widget, video widget...

themedy-widgets/themedy-widgets.php Passed 13 tests

The main PHP file in "Themedy Widgets" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
A selection of widgets to extend your Themedy site even further.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,921 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP135265721,349
JavaScript372192352
CSS4448220

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity7.83
▷ Minimum class complexity2.00
▷ Maximum class complexity20.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/widgets/images/ad-300x250.png0.66KB0.62KB▼ 5.79%
includes/widgets/images/icon-mail.png0.78KB0.66KB▼ 15.82%
includes/widgets/images/icon-facebook.png0.67KB0.59KB▼ 11.89%
includes/widgets/images/icon-smallquotes.png0.36KB0.27KB▼ 23.50%
includes/widgets/images/ad-125x125.png0.37KB0.33KB▼ 10.67%