84% woocommerce-jamef

Code Review | WooCommerce Jamef

WordPress plugin WooCommerce Jamef scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-jamef
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: Jan 15, 2014
  • Latest release: Jan 7, 2015
  • Number of updates: 23
  • Update frequency: every 15.5 days
  • Top authors: pauloiankoski (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /3,218 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by WooCommerce Jamef
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.86 ▼6.19
Dashboard /wp-admin3.31 ▼0.0365.59 ▼3.34
Posts /wp-admin/edit.php3.36 ▲0.0151.82 ▼6.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.39 ▲2.83
Media Library /wp-admin/upload.php3.24 ▲0.0131.49 ▼3.97

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Jamef
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲3613.40 ▼0.824.11 ▲2.3947.06 ▲5.64
Dashboard /wp-admin2,216 ▲284.84 ▼0.12106.25 ▼4.6138.36 ▼3.99
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0539.54 ▼1.6133.86 ▼4.78
Add New Post /wp-admin/post-new.php1,540 ▲1223.34 ▲5.19685.84 ▲18.0359.02 ▲9.33
Media Library /wp-admin/upload.php1,389 ▲14.20 ▼0.1296.59 ▼5.2643.15 ▼3.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woocommerce-jamef/includes/class-wc-jamef.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woocommerce-jamef/wc-jamef.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: delivery, shipping, woocommerce, jamef

woocommerce-jamef/wc-jamef.php 85% from 13 tests

"WooCommerce Jamef" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-jamef.php" instead of "wc-jamef.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 plugin514 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP283154401
PO File14290113

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods746.67%
▷ Protected methods640.00%
▷ Private methods213.33%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 files were detected