89% inxpress-shipping-extension

Code Review | InXpress-Shipping-Extension

WordPress plugin InXpress-Shipping-Extension scored89%from 54 tests.

About plugin

  • Plugin page: inxpress-shipping...
  • Plugin version: 3.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 28, 2021
  • Latest release: Aug 18, 2023
  • Number of updates: 12
  • Update frequency: every 62.6 days
  • Top authors: inxpressdevelopers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /814 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.36ms] Passed 4 tests

Server-side resources used by InXpress-Shipping-Extension
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.23 ▲3.19
Dashboard /wp-admin3.31 ▲0.0056.40 ▲0.71
Posts /wp-admin/edit.php3.36 ▲0.0052.96 ▲3.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.54 ▼2.78
Media Library /wp-admin/upload.php3.23 ▲0.0036.33 ▲0.33

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for InXpress-Shipping-Extension
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.081.72 ▲0.0345.37 ▲0.91
Dashboard /wp-admin2,198 ▲335.66 ▲0.1186.98 ▼8.2740.25 ▼1.11
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0236.30 ▲0.3736.84 ▲1.24
Add New Post /wp-admin/post-new.php1,526 ▼023.55 ▼0.02673.74 ▼29.5954.87 ▼2.49
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.0695.33 ▼9.8939.98 ▼7.17

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (InXpress Settings), #2 (Manage DHL Box), #3 (Manage Dimensional Weight), #4 (Manage Dimensional weight in edit product section.), #5 (Frontend cart page showing this shipping rate.)
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

inxpress-shipping-extension/wc-inxpress.php 92% from 13 tests

"InXpress-Shipping-Extension" version 3.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("inxpress-shipping-extension.php" instead of "wc-inxpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin783 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10158394729
JSON10045
XML1309

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.62
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes114.29%
Methods40
▷ Static methods37.50%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.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
PNG images were not found in this plugin