83% allparcels-shipping-module

Code Review | Allparcels.com

WordPress plugin Allparcels.com scored83%from 54 tests.

About plugin

  • Plugin page: allparcels-shippi...
  • Plugin version: 2.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Sep 28, 2016
  • Latest release: Aug 13, 2018
  • Number of updates: 35
  • Update frequency: every 19.6 days
  • Top authors: lukaslit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,438 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.55ms] Passed 4 tests

Server-side resources used by Allparcels.com
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.05 ▼0.18
Dashboard /wp-admin3.32 ▲0.0145.79 ▼2.71
Posts /wp-admin/edit.php3.37 ▲0.0150.44 ▲4.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.47 ▼12.36
Media Library /wp-admin/upload.php3.24 ▲0.0134.45 ▲1.04

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Allparcels.com
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.051.72 ▼0.0141.21 ▼6.45
Dashboard /wp-admin2,209 ▲174.87 ▼0.08104.09 ▼12.8938.96 ▼2.74
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0335.00 ▲0.1830.96 ▼5.04
Add New Post /wp-admin/post-new.php1,514 ▼917.48 ▼5.68692.13 ▲10.6455.02 ▲0.73
Media Library /wp-admin/upload.php1,382 ▼34.18 ▲0.0595.95 ▼4.8442.46 ▼2.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/allparcels-shipping-module/includes/class-wc_allparcels_taskas.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/allparcels-shipping-module/includes/class-wc_allparcels_rankas.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/allparcels-shipping-module/includes/class-wc_allparcels_skyrius.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/allparcels-shipping-module/functions.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/allparcels-shipping-module/includes/class-wc_allparcels_pastomatas.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/allparcels-shipping-module/includes/help_buttons.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Invalid URI ("")
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === allparcels-shipping-module === )
  • Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

allparcels-shipping-module/main.php 85% from 13 tests

The main file in "Allparcels.com" v. 2.4.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("allparcels-shipping-module.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,070 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PO File149157121

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity23.80
▷ Minimum class complexity7.00
▷ Maximum class complexity28.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods411.11%
▷ Public methods3288.89%
▷ Protected methods411.11%
▷ Private methods00.00%
▷ Named functions20100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There are no PNG files in this plugin