84% woocommerce-pricewaiter

Code Review | PriceWaiter for WooCommerce

WordPress plugin PriceWaiter for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: woocommerce-price...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.7
  • WordPress version: 6.3.1
  • First release: Apr 21, 2015
  • Latest release: Apr 2, 2018
  • Number of updates: 145
  • Update frequency: every 7.4 days
  • Top authors: pricewaiter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,690 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 successfully, without throwing any errors or notices

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

Server-side resources used by PriceWaiter for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.04 ▼3.26
Dashboard /wp-admin3.34 ▲0.0447.46 ▼0.12
Posts /wp-admin/edit.php3.46 ▲0.1047.06 ▲1.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.25 ▼5.65
Media Library /wp-admin/upload.php3.27 ▲0.0436.96 ▲1.11

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

PriceWaiter for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.19 ▼1.491.69 ▼0.2344.40 ▲5.24
Dashboard /wp-admin2,216 ▲255.79 ▼0.10100.29 ▼1.6543.08 ▲0.16
Posts /wp-admin/edit.php2,102 ▲132.00 ▲0.0034.70 ▲0.9034.82 ▲1.91
Add New Post /wp-admin/post-new.php1,527 ▲1317.63 ▲0.16604.91 ▼85.3049.71 ▼2.05
Media Library /wp-admin/upload.php1,404 ▲194.23 ▲0.0496.43 ▼1.7843.52 ▼1.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/woocommerce-pricewaiter/includes/admin/templates/integration_configure.php:1

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

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
10 plugin tags: commerce, ecommerce, lead capture, conversion, pricing...

woocommerce-pricewaiter/woocommerce-pricewaiter.php 92% from 13 tests

The main PHP file in "PriceWaiter for WooCommerce" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "1.0")

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
There were no executable files found in this plugin1,521 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP163885611,435
JavaScript125062
CSS14024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity13.57
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods80
▷ Static methods1518.75%
▷ Public methods6986.25%
▷ Protected methods22.50%
▷ Private methods911.25%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin