83% woo-custom-taxonomies-coupons

Code Review | Woo Custom Taxonomies Coupons

WordPress plugin Woo Custom Taxonomies Coupons scored83%from 54 tests.

About plugin

  • Plugin page: woo-custom-taxono...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2020
  • Latest release: Oct 19, 2021
  • Number of updates: 9
  • Update frequency: every 72.4 days
  • Top authors: romchyk16 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,231 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Woo Custom Taxonomies Coupons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0451.61 ▲8.88
Dashboard /wp-admin3.35 ▲0.0456.37 ▲3.90
Posts /wp-admin/edit.php3.40 ▲0.0452.33 ▼0.41
Add New Post /wp-admin/post-new.php5.93 ▲0.0498.89 ▼1.33
Media Library /wp-admin/upload.php3.27 ▲0.0441.76 ▲4.48

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Woo Custom Taxonomies Coupons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.31 ▲1.062.25 ▼3.0349.83 ▲7.00
Dashboard /wp-admin2,204 ▲245.65 ▼0.0482.98 ▼7.8539.81 ▼4.91
Posts /wp-admin/edit.php2,107 ▲72.04 ▲0.0637.73 ▲0.2334.30 ▼0.91
Add New Post /wp-admin/post-new.php1,532 ▼217.59 ▼5.66646.64 ▼22.5250.41 ▼13.29
Media Library /wp-admin/upload.php1,406 ▲64.24 ▼0.08104.79 ▼2.7242.99 ▼3.41

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-custom-taxonomies-coupons/includes/notices.php:32

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

woo-custom-taxonomies-coupons/woo-taxonoies-coupons.php 85% from 13 tests

The main PHP script in "Woo Custom Taxonomies Coupons" version 2.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-custom-taxonomies-coupons.php" instead of "woo-taxonoies-coupons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected242 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP48149209
PO File15533

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin