89% a1post-bg-shipping-for-woocommerce

Code Review | A1POST.BG Shipping for Woo

WordPress plugin A1POST.BG Shipping for Woo scored89%from 54 tests.

About plugin

  • Plugin page: a1post-bg-shippin...
  • Plugin version: 1.4.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 5, 2023
  • Latest release: Apr 5, 2023
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: a1post (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /754 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by A1POST.BG Shipping for Woo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.80 ▲2.96
Dashboard /wp-admin3.31 ▲0.0049.03 ▼0.67
Posts /wp-admin/edit.php3.36 ▲0.0049.52 ▲0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.19 ▼5.28
Media Library /wp-admin/upload.php3.23 ▲0.0042.53 ▲5.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for A1POST.BG Shipping for Woo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.112.12 ▼0.0638.66 ▼9.76
Dashboard /wp-admin2,192 ▲125.62 ▼0.0392.65 ▲2.8741.27 ▼2.61
Posts /wp-admin/edit.php2,103 ▲62.02 ▼0.0141.37 ▲4.2536.56 ▼6.66
Add New Post /wp-admin/post-new.php1,531 ▲523.00 ▲0.05607.21 ▼71.3161.43 ▲10.96
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.1095.19 ▼10.0342.49 ▼2.71

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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 | 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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

a1post-bg-shipping-for-woocommerce/a1post-shipping-woo.php 85% from 13 tests

The principal PHP file in "A1POST.BG Shipping for Woo" v. 1.4.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 367 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("a1post-bg-shipping-for-woocommerce.php" instead of "a1post-shipping-woo.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
No dangerous file extensions were detected201 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin