84% woo-set-price-note

Code Review | Woo Set Price Note (Units, Offers, Editions)

WordPress plugin Woo Set Price Note (Units, Offers, Editions) scored84%from 54 tests.

About plugin

  • Plugin page: woo-set-price-note
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Feb 5, 2016
  • Latest release: Oct 8, 2020
  • Number of updates: 24
  • Update frequency: every 71.1 days
  • Top authors: shivashankerbhatta (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /75,135 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Woo Set Price Note (Units, Offers, Editions)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.89 ▲1.73
Dashboard /wp-admin3.31 ▲0.0044.60 ▼4.04
Posts /wp-admin/edit.php3.36 ▲0.0046.99 ▲0.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.12 ▼6.26
Media Library /wp-admin/upload.php3.23 ▲0.0032.90 ▼0.59

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Woo Set Price Note (Units, Offers, Editions)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.39 ▲0.041.93 ▲0.3239.36 ▼2.11
Dashboard /wp-admin2,195 ▲155.62 ▲0.0290.29 ▲4.8341.09 ▼2.62
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0041.04 ▲5.4037.62 ▲6.10
Add New Post /wp-admin/post-new.php1,541 ▲1323.32 ▲0.17689.17 ▲14.5555.90 ▲2.02
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.07104.07 ▲8.4245.32 ▲1.32

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-set-price-note/aankha-woo-set-price-note.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: price, woo-commerce, custom, addon, products...

woo-set-price-note/aankha-woo-set-price-note.php 92% from 13 tests

The main PHP file in "Woo Set Price Note (Units, Offers, Editions)" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-set-price-note.php" instead of "aankha-woo-set-price-note.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin417 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3165148360
JavaScript116857

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.00
▷ Minimum class complexity4.00
▷ Maximum class complexity25.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods314.29%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin