78% ade-custom-shipping

Code Review | Ade Custom Shipping

WordPress plugin Ade Custom Shipping scored 78% from 54 tests.

About plugin

  • Plugin page: ade-custom-shipping
  • Plugin version: 2.6.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.9
  • WordPress version: 5.9.2
  • First release: Dec 8, 2020
  • Latest release: Mar 7, 2022
  • Number of updates: 24
  • Update frequency: every 19.1 days
  • Top authors: biggidroid (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

100+ active / 1,010 total downloads


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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼297.04ms] Passed 4 tests

Analyzing server-side resources used by Ade Custom Shipping
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2457.35 ▲10.07
Dashboard /wp-admin3.59 ▲0.1933.19 ▼6.12
Posts /wp-admin/edit.php3.82 ▲0.1837.87 ▼0.42
Add New Post /wp-admin/post-new.php7.06 ▲0.0989.51 ▼1,177.69
Media Library /wp-admin/upload.php3.48 ▲0.1823.83 ▼3.94

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 3 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ade Custom Shipping
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,804 ▲5015.95 ▼0.065.99 ▼0.442.13 ▼1.00
Dashboard /wp-admin2,934 ▲736.26 ▼0.06114.89 ▼21.52181.25 ▲16.28
Posts /wp-admin/edit.php2,727 ▲393.13 ▼0.1167.34 ▲3.85148.93 ▲7.39
Add New Post /wp-admin/post-new.php1,690 ▼6216.09 ▼5.51391.83 ▼50.14177.21 ▲20.00
Media Library /wp-admin/upload.php1,734 ▲365.69 ▲0.18122.56 ▼6.50207.12 ▲17.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 3 options
    • ade_custom_time
    • ade_custom_ng
    • ade_custom_gh

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ade-custom-shipping/inc/pro/dashboard.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ade-custom-shipping/inc/plugin_data.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ade-custom-shipping/inc/auth/ajax.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ade-custom-shipping/inc/pro/loader.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AdeCustomSHipping' not found in wp-content/plugins/ade-custom-shipping/inc/plugin_path.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% 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
These attributes need your attention: The official readme.txt might help

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

The primary PHP file in "Ade Custom Shipping" version 2.6.4 is used by WordPress to initiate all plugin functionality
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 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin351 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.50
▷ Minimum class complexity2.00
▷ Maximum class complexity13.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods545.45%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ 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.png22.26KB3.79KB▼ 82.96%
assets/img/ade_logo_new.png1.18KB0.67KB▼ 42.87%