90% msrp-for-woocommerce

Code Review | MSRP (List Price/RRP) for WooCommerce

WordPress plugin MSRP (List Price/RRP) for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: msrp-for-woocommerce
  • Plugin version: 1.7.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: May 7, 2018
  • Latest release: Sep 26, 2023
  • Number of updates: 73
  • Update frequency: every 27.0 days
  • Top authors: algoritmika (52.05%)omardabbas (43.84%)wpcodefactory (6.85%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /12,277 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by MSRP (List Price/RRP) for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0243.01 ▼2.67
Dashboard /wp-admin3.37 ▼0.0258.96 ▼7.07
Posts /wp-admin/edit.php3.48 ▲0.0851.59 ▼3.96
Add New Post /wp-admin/post-new.php5.95 ▲0.0291.04 ▼6.28
Media Library /wp-admin/upload.php3.29 ▲0.0239.68 ▼1.29

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MSRP (List Price/RRP) for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▲0.041.83 ▲0.1644.03 ▼0.95
Dashboard /wp-admin2,192 ▲185.54 ▼0.1488.37 ▼11.7036.64 ▼6.65
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0433.36 ▼5.9835.86 ▲1.31
Add New Post /wp-admin/post-new.php1,526 ▼223.60 ▲0.50672.19 ▼30.7955.56 ▼5.07
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0896.39 ▼20.1746.02 ▼1.17

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: product, woocommerce, list price, msrp, srp...

msrp-for-woocommerce/msrp-for-woocommerce.php Passed 13 tests

The primary PHP file in "MSRP (List Price/RRP) for WooCommerce" version 1.7.9 is used by WordPress to initiate all plugin functionality
45 characters long description:
Save and display product MSRP in WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,717 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP101867301,715
INI1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity33.00
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods79
▷ Static methods11.27%
▷ Public methods79100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected