89% yumjam-one-off-special-products-for-woocommerce

Code Review | Yumjam One-off Special Products for WooCommerce

WordPress plugin Yumjam One-off Special Products for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: yumjam-one-off-sp...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Mar 21, 2018
  • Latest release: Jul 10, 2018
  • Number of updates: 7
  • Update frequency: every 16.0 days
  • Top authors: matt.burnett (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 524 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.62ms] Passed 4 tests

This is a short check of server-side resources used by Yumjam One-off Special Products for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.79 ▲1.74
Dashboard /wp-admin3.35 ▲0.0543.20 ▼3.92
Posts /wp-admin/edit.php3.41 ▲0.0544.25 ▼13.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.16 ▼8.50
Media Library /wp-admin/upload.php3.28 ▲0.0533.86 ▼0.17

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Yumjam One-off Special Products for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.111.91 ▲0.0244.07 ▼4.29
Dashboard /wp-admin2,200 ▲125.81 ▲0.9392.91 ▼8.6539.43 ▼2.41
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0734.60 ▼6.9135.64 ▼0.77
Add New Post /wp-admin/post-new.php1,533 ▲1923.43 ▼0.10630.70 ▼41.1254.84 ▼1.73
Media Library /wp-admin/upload.php1,388 ▼34.24 ▼0.02103.12 ▲4.2643.33 ▼4.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 93% 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: one off, woocommerce, bespoke, out of stock, product inquiry...

yumjam-one-off-special-products-for-woocommerce/yumjam-one-off-special-products.php 85% from 13 tests

The primary PHP file in "Yumjam One-off Special Products for WooCommerce" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("yumjam-one-off-special-products-for-woocommerce.php" instead of "yumjam-one-off-special-products.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin180 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13166180

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected