89% woo-custom-empty-price

Code Review | Woo Custom Empty Price

WordPress plugin Woo Custom Empty Price scored 89% from 54 tests.

About plugin

  • Plugin page: woo-custom-empty-...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: May 28, 2019
  • Latest release: Nov 30, 2022
  • Number of updates: 24
  • Update frequency: every 53.4 days
  • Top authors: chrisjallen (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 2,608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Woo Custom Empty Price
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.97 ▼4.00
Dashboard /wp-admin3.31 ▲0.0045.61 ▼3.48
Posts /wp-admin/edit.php3.36 ▲0.0045.41 ▼3.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.88 ▼4.61
Media Library /wp-admin/upload.php3.23 ▲0.0042.81 ▲11.36

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo Custom Empty Price
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.064.66 ▲2.7743.78 ▼0.88
Dashboard /wp-admin2,206 ▲185.86 ▲0.9998.41 ▼21.2440.02 ▼7.53
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.0134.95 ▼1.6933.01 ▲1.60
Add New Post /wp-admin/post-new.php1,533 ▼023.15 ▲0.15681.11 ▲76.1860.67 ▲9.94
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0194.55 ▼10.9541.77 ▼2.25

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
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
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

woo-custom-empty-price/woo-custom-empty-price.php 92% from 13 tests

The primary PHP file in "Woo Custom Empty Price" version 1.1.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected535 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3133257503
JavaScript13217
CSS23615

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected