68% dynamic-widgets

Code Review | Dynamic Widgets

WordPress plugin Dynamic Widgets scored68%from 54 tests.

About plugin

  • Plugin page: dynamic-widgets
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.2.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 17, 2010
  • Latest release: Sep 27, 2023
  • Number of updates: 200
  • Update frequency: every 25.0 days
  • Top authors: qurl (98%)vivalex (1.5%)vivwebs (1.5%)

Code review

54 tests

User reviews

109 reviews

Install metrics

20,000+ active /930,251 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼0.84ms] Passed 4 tests

Analyzing server-side resources used by Dynamic Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6445.37 ▲6.12
Dashboard /wp-admin3.68 ▲0.3455.52 ▼3.05
Posts /wp-admin/edit.php3.73 ▲0.3850.48 ▲3.26
Add New Post /wp-admin/post-new.php6.20 ▲0.3190.73 ▼9.71
Media Library /wp-admin/upload.php3.54 ▲0.3140.83 ▲6.30
Dynamic Widgets /wp-admin/themes.php?page=dynwid-config3.5642.25

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 99 new files
Database: 1 new table, 8 new options
New tables
wp_dynamic_widgets
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
dynwid_version
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
dynwid_housekeeping_lastrun

Browser metrics Passed 4 tests

An overview of browser requirements for Dynamic Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.35 ▼0.241.76 ▲0.1540.04 ▲1.34
Dashboard /wp-admin2,199 ▲255.49 ▼0.1180.62 ▼2.3739.75 ▼4.20
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0033.80 ▲0.7835.08 ▲0.37
Add New Post /wp-admin/post-new.php1,539 ▲1118.30 ▼4.34594.43 ▼63.3668.47 ▲18.11
Media Library /wp-admin/upload.php1,407 ▲74.24 ▲0.0295.58 ▼15.2344.47 ▼0.80
Dynamic Widgets /wp-admin/themes.php?page=dynwid-config1,1261.8624.5330.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_dynamic_widgets
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • dynwid_version
    • dynwid_housekeeping_lastrun
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 40× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/dynamic-widgets/mods/error_module.php
    • > /wp-content/plugins/dynamic-widgets/dynamic-widgets.php
    • > /wp-content/plugins/dynamic-widgets/classes/messagebox_class.php
    • > /wp-content/plugins/dynamic-widgets/dynwid_admin.php
    • > /wp-content/plugins/dynamic-widgets/classes/dynwid_class.php
    • > /wp-content/plugins/dynamic-widgets/mods/pages_module.php
    • > /wp-content/plugins/dynamic-widgets/mods/wpec_module.php
    • > /wp-content/plugins/dynamic-widgets/mods/device_module.php
    • > /wp-content/plugins/dynamic-widgets/mods/shortcode_module.php
    • > /wp-content/plugins/dynamic-widgets/mods/day_module.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'DWModule' not found in wp-content/plugins/dynamic-widgets/mods/fimage_module.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

dynamic-widgets/dynamic-widgets.php 92% from 13 tests

The primary PHP file in "Dynamic Widgets" version 1.6.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin14,632 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PO File132,1012,8485,526
PHP411,0451,1754,797
JavaScript43244853,660
CSS249126584
Ant17065

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity13.29
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes12.94%
▷ Concrete classes3397.06%
▷ Final classes00.00%
Methods126
▷ Static methods7861.90%
▷ Public methods11490.48%
▷ Protected methods64.76%
▷ Private methods64.76%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
img/wpml_icon.png0.79KB0.82KB0.00%
images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%