78% wc-booster

Code Review | WC Booster

WordPress plugin WC Booster scored78%from 54 tests.

About plugin

  • Plugin page: wc-booster
  • Plugin version: 1.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3
  • WordPress version: 6.3.1
  • First release: Sep 28, 2023
  • Latest release: Oct 2, 2023
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: eaglethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.84ms] Passed 4 tests

This is a short check of server-side resources used by WC Booster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.60 ▲3.16
Dashboard /wp-admin3.31 ▲0.0148.24 ▼0.64
Posts /wp-admin/edit.php3.36 ▲0.0145.29 ▼4.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.31 ▼20.17
Media Library /wp-admin/upload.php3.24 ▲0.0135.58 ▲1.77

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 132 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WC Booster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.26 ▼1.124.97 ▲3.2842.15 ▼1.75
Dashboard /wp-admin2,212 ▲275.77 ▼0.1398.44 ▼4.8240.76 ▲3.33
Posts /wp-admin/edit.php2,094 ▲51.99 ▼0.0736.95 ▼6.2434.65 ▼7.88
Add New Post /wp-admin/post-new.php1,548 ▲3418.19 ▲0.84668.11 ▲29.7663.85 ▼9.79
Media Library /wp-admin/upload.php1,394 ▲64.23 ▲0.0597.56 ▼16.5041.84 ▲0.47

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wc-booster/admin-page-template.php
  • 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-booster/custom-fields/fields/color-picker.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-booster/custom-fields/fields/dropdown-navigation.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wc-booster/custom-fields/fields/copy.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wc-booster/custom-fields/fields/label.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-booster/inc/script-loader.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-booster/custom-fields/fields/editor.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-booster/inc/text-domain.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-booster/inc/plugin-page.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wc-booster/custom-fields/fields/divider.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-booster/custom-fields/fields/default.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 ()
You can look at the official readme.txt

wc-booster/wc-booster.php 92% from 13 tests

"WC Booster" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("6.1" instead of "6.2")

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 plugin29,274 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript704,6241,45317,724
CSS11324256,067
PHP426252352,812
SVG1002,671

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.67
▷ Minimum class complexity2.00
▷ Maximum class complexity44.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods138
▷ Static methods139.42%
▷ Public methods138100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin