99% isabideliver-logistics

Code Review | isabiDeliver for WooCommerce

WordPress plugin isabiDeliver for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: isabideliver-logi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-5.7.2
  • WordPress version: 5.9.2
  • First release: May 21, 2021
  • Latest release: Jul 17, 2021
  • Number of updates: 49
  • Update frequency: every 1.2 days
  • Top authors: OmaB (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 180 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.02MB] [CPU: ▼311.73ms] Passed 4 tests

A check of server-side resources used by isabiDeliver for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0160.98 ▲10.31
Dashboard /wp-admin3.41 ▲0.0032.65 ▼1.02
Posts /wp-admin/edit.php3.64 ▲0.0035.37 ▼18.10
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.68 ▼1,229.50
Media Library /wp-admin/upload.php3.30 ▲0.0024.68 ▲1.70

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by isabiDeliver for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲6116.00 ▲0.436.40 ▲0.852.79 ▲0.48
Dashboard /wp-admin2,892 ▲346.10 ▼0.06113.61 ▼19.14151.10 ▼10.22
Posts /wp-admin/edit.php2,694 ▼03.24 ▼0.0162.40 ▲0.02139.67 ▲3.15
Add New Post /wp-admin/post-new.php1,719 ▲5822.70 ▲6.63406.22 ▼2.74150.12 ▼11.04
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.06140.47 ▲4.66185.79 ▲2.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: shipping, delivery, ecommerce, isabideliver

isabideliver-logistics/isabideliver.php 77% from 13 tests

Analyzing the main PHP file in "isabiDeliver for WooCommerce" version 1.0.0
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "2.2")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 ("isabideliver-logistics.php" instead of "isabideliver.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,134 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP62753891,134

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.80
▷ Minimum class complexity11.00
▷ Maximum class complexity56.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods59
▷ Static methods35.08%
▷ Public methods5288.14%
▷ Protected methods711.86%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/isabideliver_logo.png10.23KB5.64KB▼ 44.85%
assets/img/icon.png1.31KB1.06KB▼ 19.24%