89% shipping-options

Code Review | Shipping Options

WordPress plugin Shipping Options scored 89% from 54 tests.

About plugin

  • Plugin page: shipping-options
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Aug 2, 2023
  • Number of updates: 32
  • Update frequency: every 89.1 days
  • Top authors: impleCode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 4,279 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.29ms] Passed 4 tests

An overview of server-side resources used by Shipping Options
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.02 ▼6.08
Dashboard /wp-admin3.45 ▲0.1548.46 ▼3.58
Posts /wp-admin/edit.php3.56 ▲0.2151.14 ▲1.89
Add New Post /wp-admin/post-new.php6.03 ▲0.1586.92 ▼5.40
Media Library /wp-admin/upload.php3.37 ▲0.1438.28 ▲2.78
Shipping Options /wp-admin/options-general.php?page=ic_shipping3.3434.97

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shipping Options
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.17 ▼1.501.54 ▼0.2540.19 ▼12.36
Dashboard /wp-admin2,210 ▲225.89 ▲0.08107.13 ▲2.4738.26 ▼8.53
Posts /wp-admin/edit.php2,096 ▲71.96 ▼0.0539.98 ▲1.7635.57 ▲5.15
Add New Post /wp-admin/post-new.php1,536 ▲323.07 ▼0.00649.31 ▼0.2772.38 ▲21.51
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0799.20 ▼7.4143.25 ▼1.08
Shipping Options /wp-admin/options-general.php?page=ic_shipping8122.0125.6725.87

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

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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 to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Shipping options box on add/edit screen.), #2 (Shipping options on front-end.), #3 (Shipping settings.)
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === shipping-options === )
The official readme.txt might help

shipping-options/shipping-options.php 92% from 13 tests

"Shipping Options" version 1.1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/lang/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin902 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP18170436902

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions61
▷ Named functions61100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/implecode.png11.70KB5.04KB▼ 56.91%