84% woocommerce-dynamic-handling

Code Review | WooCommerce Dynamic Handling

WordPress plugin WooCommerce Dynamic Handling scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-dynam...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.4.1
  • WordPress version: 6.3.1
  • First release: Jul 7, 2015
  • Latest release: Jan 13, 2016
  • Number of updates: 6
  • Update frequency: every 31.8 days
  • Top authors: webskitters (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,117 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼18.28ms] Passed 4 tests

A check of server-side resources used by WooCommerce Dynamic Handling
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.77 ▼1.13
Dashboard /wp-admin3.34 ▼0.0145.95 ▼15.09
Posts /wp-admin/edit.php3.39 ▲0.0344.72 ▼0.04
Add New Post /wp-admin/post-new.php3.12 ▼2.7632.15 ▼56.85
Media Library /wp-admin/upload.php3.26 ▲0.0334.90 ▲2.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Dynamic Handling
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.86 ▲0.301.80 ▲0.0144.62 ▲4.48
Dashboard /wp-admin2,203 ▲154.85 ▼0.10103.32 ▼0.8042.08 ▼0.75
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0133.87 ▼4.0634.70 ▲3.21
Add New Post /wp-admin/post-new.php1,533 ▼923.21 ▲4.96627.05 ▲17.6353.12 ▲0.21
Media Library /wp-admin/upload.php1,382 ▼94.18 ▼0.0194.13 ▼2.0342.07 ▼1.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-dynamic-handling/woocommerce-dynamic-handling.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
3 plugin tags: handling, dynamic handling, woocommerce

woocommerce-dynamic-handling/woocommerce-dynamic-handling.php Passed 13 tests

The principal PHP file in "WooCommerce Dynamic Handling" v. 1.0.2 is loaded by WordPress automatically on each request
62 characters long description:
WooCommerce plugin for add dynamic handling charge of products

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin123 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14323123

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.31MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/2.png159.74KB45.38KB▼ 71.59%
assets/3.png91.32KB24.48KB▼ 73.19%
assets/1.png69.58KB19.80KB▼ 71.54%