84% woomizer

Code Review | Woomizer

WordPress plugin Woomizer scored 84% from 54 tests.

About plugin

  • Plugin page: woomizer
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2018
  • Latest release: Jan 26, 2018
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: sofyansitorus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 727 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.54ms] Passed 4 tests

An overview of server-side resources used by Woomizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.91 ▼4.64
Dashboard /wp-admin3.31 ▲0.0050.65 ▼0.54
Posts /wp-admin/edit.php3.36 ▲0.0051.77 ▲0.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.47 ▼9.06
Media Library /wp-admin/upload.php3.23 ▲0.0035.31 ▲0.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Woomizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.58 ▼1.101.92 ▲0.2041.88 ▼10.83
Dashboard /wp-admin2,209 ▲184.86 ▼0.02108.24 ▼7.2342.16 ▼2.66
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0435.36 ▼6.4833.69 ▼3.81
Add New Post /wp-admin/post-new.php1,534 ▼823.19 ▲5.24683.97 ▲63.4850.20 ▼3.32
Media Library /wp-admin/upload.php1,382 ▼64.25 ▲0.0997.96 ▼8.3043.98 ▲0.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Panel' not found in wp-content/plugins/woomizer/includes/class-woomizer-customize-panel.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/woomizer/includes/class-woomizer-customize-control.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Partial' not found in wp-content/plugins/woomizer/includes/class-woomizer-customize-partial.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Woomizer_Customize_Control' not found in wp-content/plugins/woomizer/includes/controls/class-woomizer-control-product-tabs.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/woomizer/includes/class-woomizer-customize-section.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Woomizer_Customize_Control' not found in wp-content/plugins/woomizer/includes/controls/class-woomizer-control-divider.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/woomizer/includes/class-woomizer-customize-setting.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Woomizer_Customize_Control' not found in wp-content/plugins/woomizer/includes/controls/class-woomizer-control-product-grid.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: customizer, woocommerce, woocommerce-customizer

woomizer/woomizer.php 92% from 13 tests

The entry point to "Woomizer" version 1.2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("4.8.0" instead of "3.0.0")

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 plugin1,444 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP15233845911
JavaScript95935315
CSS660107
Sass33085
JSON10026

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity12.64
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes218.18%
Methods42
▷ Static methods24.76%
▷ Public methods2866.67%
▷ Protected methods49.52%
▷ Private methods1023.81%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin