10% blowhorn-logistics-same-day-delivery

Code Review | Blowhorn Logistics Same Day Delivery

WordPress plugin Blowhorn Logistics Same Day Delivery scored 10% from 54 tests.

About plugin

  • Plugin page: blowhorn-logistic...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Apr 7, 2021
  • Latest release: Apr 27, 2021
  • Number of updates: 4
  • Update frequency: every 5.3 days
  • Top authors: blowhorndev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 430 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'blsdd_plugin_registration_hook' not found or invalid function name

Server metrics [RAM: ▲0.02MB] [CPU: ▲12.21ms] Passed 4 tests

Analyzing server-side resources used by Blowhorn Logistics Same Day Delivery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1757.23 ▲10.01
Dashboard /wp-admin3.33 ▲0.0270.99 ▲20.20
Posts /wp-admin/edit.php3.38 ▲0.0264.98 ▲14.61
Add New Post /wp-admin/post-new.php5.91 ▲0.02107.38 ▲6.73
Media Library /wp-admin/upload.php3.25 ▲0.0252.43 ▲17.47

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables
wp_bh_logistics
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
jal_db_version

Browser metrics Passed 4 tests

Checking browser requirements for Blowhorn Logistics Same Day Delivery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.74 ▲0.311.86 ▼0.5341.79 ▼6.19
Dashboard /wp-admin2,212 ▲275.86 ▲0.01109.49 ▼8.0543.06 ▼1.15
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0540.71 ▲2.3939.39 ▲0.67
Add New Post /wp-admin/post-new.php1,520 ▼817.57 ▼0.45597.33 ▼10.7863.95 ▲11.00
Media Library /wp-admin/upload.php1,394 ▲64.28 ▲0.12100.59 ▼6.5244.21 ▲1.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 failed, leaving 1 table in the database
    • wp_bh_logistics
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • jal_db_version
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

blowhorn-logistics-same-day-delivery/init.php 92% from 13 tests

The entry point to "Blowhorn Logistics Same Day Delivery" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("blowhorn-logistics-same-day-delivery.php" instead of "init.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 plugin599 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP219469599

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin