89% epeken-jexpress

Code Review | JExpress Integrated Shipping Plugin for WooCommerce

WordPress plugin JExpress Integrated Shipping Plugin for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: epeken-jexpress
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 7, 2021
  • Latest release: Nov 8, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: epeken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

A check of server-side resources used by JExpress Integrated Shipping Plugin for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.24 ▼2.76
Dashboard /wp-admin3.32 ▼0.0343.53 ▼15.60
Posts /wp-admin/edit.php3.37 ▲0.0147.21 ▲0.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.24 ▼11.10
Media Library /wp-admin/upload.php3.24 ▲0.0136.71 ▼0.33

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for JExpress Integrated Shipping Plugin for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.24 ▼0.121.70 ▲0.1144.64 ▲4.77
Dashboard /wp-admin2,210 ▲335.54 ▼0.0482.68 ▼3.1937.70 ▼5.18
Posts /wp-admin/edit.php2,115 ▲152.11 ▲0.1635.99 ▲1.0534.68 ▼2.98
Add New Post /wp-admin/post-new.php1,548 ▲2223.20 ▼0.34669.95 ▲10.2651.66 ▼0.36
Media Library /wp-admin/upload.php1,418 ▲184.23 ▲0.07112.24 ▲3.2847.69 ▲1.92

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • License uri: Invalid URI ("https:/www.gnu.org/license/gpl-3.0.en.html")
The official readme.txt is a good inspiration

epeken-jexpress/jexpress.php 85% from 13 tests

The main PHP file in "JExpress Integrated Shipping Plugin for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 206 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("epeken-jexpress.php" instead of "jexpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin238 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32816238

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.14
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin