84% woocommerce-rrp

Code Review | WooCommerce RRP

WordPress plugin WooCommerce RRP scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-rrp
  • Plugin version: 1.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Feb 15, 2022
  • Number of updates: 29
  • Update frequency: every 91.9 days
  • Top authors: Brad Davis (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /26,569 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.00MB] [CPU: ▼6.68ms] Passed 4 tests

Server-side resources used by WooCommerce RRP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.34 ▼6.44
Dashboard /wp-admin3.31 ▲0.0146.23 ▲0.46
Posts /wp-admin/edit.php3.36 ▲0.0041.90 ▼1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.57 ▼19.05
Media Library /wp-admin/upload.php3.23 ▲0.0036.11 ▲2.62

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 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

This is an overview of browser requirements for WooCommerce RRP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.361.65 ▼0.0044.74 ▲7.27
Dashboard /wp-admin2,203 ▲115.91 ▲1.04111.25 ▲2.4443.27 ▲1.15
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.0133.91 ▼2.3834.05 ▼0.24
Add New Post /wp-admin/post-new.php1,533 ▼523.09 ▼0.24671.49 ▼14.8657.89 ▲6.97
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0595.34 ▼4.4244.63 ▼2.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Please fix the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/includes/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/assets/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/public/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/languages/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/admin/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/public/partials/index.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
8 plugin tags: wc-admin, admin, woocommerce, woocommerce-admin, woocommerce-price...

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

"WooCommerce RRP" version 1.7.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "6.0.0")

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
Good job! No executable or dangerous file extensions detected267 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP986318229
PO File19938

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods1661.54%
▷ Protected methods00.00%
▷ Private methods1038.46%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected