90% ade-custom-shipping

Code Review | Ade Custom Shipping

WordPress plugin Ade Custom Shipping scored90%from 54 tests.

About plugin

  • Plugin page: ade-custom-shipping
  • Plugin version: 4.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 8, 2020
  • Latest release: Nov 26, 2023
  • Number of updates: 56
  • Update frequency: every 19.4 days
  • Top authors: biggidroid (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

100+ active /3,678 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼14.88ms] Passed 4 tests

A check of server-side resources used by Ade Custom Shipping
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1539.17 ▼11.81
Dashboard /wp-admin3.45 ▲0.1447.09 ▼3.38
Posts /wp-admin/edit.php3.50 ▲0.1446.79 ▼13.32
Add New Post /wp-admin/post-new.php6.05 ▲0.1684.30 ▼31.00
Media Library /wp-admin/upload.php3.37 ▲0.1436.51 ▼2.67

Server storage [IO: ▲0.08MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
ade_custom_gh
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
ade_custom_time
can_compress_scripts
ade_custom_ng
widget_recent-posts

Browser metrics Passed 4 tests

Ade Custom Shipping: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5914.34 ▲0.151.82 ▲0.0439.39 ▼4.44
Dashboard /wp-admin2,226 ▲495.74 ▲0.1395.07 ▼8.4593.84 ▲50.08
Posts /wp-admin/edit.php2,135 ▲321.98 ▲0.0338.42 ▼7.5734.21 ▼1.98
Add New Post /wp-admin/post-new.php1,556 ▲3023.43 ▲2.27742.68 ▼43.1955.97 ▼13.21
Media Library /wp-admin/upload.php1,428 ▲314.23 ▲0.0299.68 ▼11.3975.65 ▲29.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • ade_custom_time
    • ade_custom_gh
    • db_upgraded
    • ade_custom_ng
    • 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)
Good news, no errors were detected

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt is a good inspiration

ade-custom-shipping/ade-custom-shipping.php Passed 13 tests

The principal PHP file in "Ade Custom Shipping" v. 4.1.3 is loaded by WordPress automatically on each request
47 characters long description:
Add shipping zones 3 levels deep for ecommerce.

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 plugin913 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP85053501
JavaScript31146304
Markdown1580101
CSS1017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.50
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods650.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1083.33%
▷ Anonymous functions216.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/ade_logo_new.png1.18KB0.67KB▼ 42.87%
assets/img/ade_logo.png22.26KB3.79KB▼ 82.96%