84% dynamic-plugins

Code Review | Dynamic Plugins

WordPress plugin Dynamic Plugins scored84%from 54 tests.

About plugin

  • Plugin page: dynamic-plugins
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0 or higher-6.2.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2021
  • Latest release: May 19, 2023
  • Number of updates: 54
  • Update frequency: every 14.3 days
  • Top authors: devloper00 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /817 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.89ms] Passed 4 tests

A check of server-side resources used by Dynamic Plugins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0435.68 ▼3.85
Dashboard /wp-admin3.34 ▲0.0446.60 ▼3.01
Posts /wp-admin/edit.php3.39 ▲0.0444.98 ▼4.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.76 ▼24.17
Media Library /wp-admin/upload.php3.26 ▲0.0435.02 ▼0.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Dynamic Plugins: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲20813.63 ▼1.1310.04 ▲8.3642.10 ▲3.52
Dashboard /wp-admin2,228 ▲405.86 ▲0.9899.15 ▼13.6039.78 ▼7.18
Posts /wp-admin/edit.php2,111 ▲192.06 ▲0.0037.92 ▼3.4534.84 ▼0.16
Add New Post /wp-admin/post-new.php1,525 ▼323.33 ▲5.11680.63 ▲58.9565.02 ▲6.51
Media Library /wp-admin/upload.php1,413 ▲254.19 ▼0.0497.09 ▼7.2943.71 ▲0.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dynamic-plugins/dynamic-plugins.php:22

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

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

The main PHP file in "Dynamic Plugins" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "4.0 or higher")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin360 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24781151
CSS1190119
JavaScript1191188
SVG2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin