90% parcel2go-shipping

Code Review | Parcel2Go Shipping

WordPress plugin Parcel2Go Shipping scored 90% from 54 tests.

About plugin

  • Plugin page: parcel2go-shipping
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Jul 11, 2018
  • Latest release: Aug 24, 2020
  • Number of updates: 22
  • Update frequency: every 39.4 days
  • Top authors: parcel2go (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

300+ active / 3,507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Parcel2Go Shipping
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.00 ▲6.37
Dashboard /wp-admin3.31 ▲0.0051.95 ▲2.83
Posts /wp-admin/edit.php3.36 ▲0.0046.39 ▼0.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.92 ▼3.46
Media Library /wp-admin/upload.php3.23 ▲0.0037.06 ▲4.35

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Parcel2Go Shipping
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.071.51 ▼0.1240.28 ▼9.52
Dashboard /wp-admin2,209 ▲174.84 ▼0.07107.49 ▼3.9141.67 ▼1.72
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0140.13 ▲1.6736.43 ▲3.25
Add New Post /wp-admin/post-new.php1,519 ▼1523.36 ▲0.25585.97 ▼92.1157.34 ▼0.60
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0297.59 ▼0.5142.31 ▼1.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: shipping, delivery, courier, comparison, parcel2go...

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

Analyzing the main PHP file in "Parcel2Go Shipping" version 1.0.4
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("parcel2go-shipping.php" instead of "parcel2go.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,461 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1240671,562
JavaScript31243895
CSS1004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity44.25
▷ Minimum class complexity3.00
▷ Maximum class complexity91.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods59
▷ Static methods00.00%
▷ Public methods5898.31%
▷ Protected methods00.00%
▷ Private methods11.69%
Functions15
▷ Named functions213.33%
▷ Anonymous functions1386.67%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin