84% jojo-woocommerce-description

Code Review | JoJo WooCommerce Product Description

WordPress plugin JoJo WooCommerce Product Description scored84%from 54 tests.

About plugin

  • Plugin page: jojo-woocommerce-...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Apr 21, 2016
  • Latest release: Jul 14, 2017
  • Number of updates: 19
  • Update frequency: every 23.7 days
  • Top authors: jojoweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,375 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
Install script ran successfully

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

A check of server-side resources used by JoJo WooCommerce Product Description
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.86 ▼3.94
Dashboard /wp-admin3.32 ▲0.0147.02 ▼6.33
Posts /wp-admin/edit.php3.37 ▲0.0146.34 ▼1.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.36 ▼16.35
Media Library /wp-admin/upload.php3.24 ▲0.0137.31 ▲1.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for JoJo WooCommerce Product Description
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.29 ▲0.121.98 ▲0.3040.73 ▲0.61
Dashboard /wp-admin2,198 ▲185.62 ▼0.0381.56 ▼11.1242.00 ▼1.37
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0340.25 ▼1.1836.00 ▲2.87
Add New Post /wp-admin/post-new.php1,535 ▼523.31 ▲0.59637.36 ▼28.9950.86 ▼1.49
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.0198.00 ▼0.1643.51 ▼3.24

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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)
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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jojo-woocommerce-description/jojo-woocommerce-description.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === jojo-woocommerce-description === )
The official readme.txt might help

jojo-woocommerce-description/jojo-woocommerce-description.php Passed 13 tests

The primary PHP file in "JoJo WooCommerce Product Description" version 1.0.5 is used by WordPress to initiate all plugin functionality
58 characters long description:
Show a short description for each product in category view

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected125 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1264391
PO File1104331
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin