83% burd-delivery-shipping

Code Review | Burd Delivery Shipping

WordPress plugin Burd Delivery Shipping scored83%from 54 tests.

About plugin

  • Plugin page: burd-delivery-shi...
  • Plugin version: 1.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Sep 9, 2019
  • Latest release: Feb 8, 2021
  • Number of updates: 14
  • Update frequency: every 37.2 days
  • Top authors: burddeliverys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /635 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Burd Delivery Shipping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.41 ▼5.29
Dashboard /wp-admin3.31 ▲0.0048.25 ▼4.51
Posts /wp-admin/edit.php3.36 ▲0.0048.39 ▼2.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.21 ▼25.67
Media Library /wp-admin/upload.php3.23 ▲0.0035.18 ▼0.56

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Burd Delivery Shipping
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.74 ▲0.141.87 ▼0.0641.02 ▼3.18
Dashboard /wp-admin2,198 ▲215.64 ▲0.0589.06 ▼3.0939.75 ▼1.74
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0137.84 ▼3.8434.89 ▼4.67
Add New Post /wp-admin/post-new.php1,526 ▼022.95 ▼0.12647.98 ▲1.3654.53 ▼4.56
Media Library /wp-admin/upload.php1,391 ▼124.17 ▼0.05102.78 ▼10.1641.56 ▼7.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/burd-delivery-shipping/class-burd-order-shipping-handler.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Burd_Package_Calculation' not found in wp-content/plugins/burd-delivery-shipping/class-burd-condition-filter.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/burd-delivery-shipping/class-burd-admin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/burd-delivery-shipping/class-burd-checkout.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/burd-delivery-shipping/hooks.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Add an image for screenshot #1 (The setup view.)
Please take inspiration from this readme.txt

burd-delivery-shipping/autoloader.php 92% from 13 tests

The primary PHP file in "Burd Delivery Shipping" version 1.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("burd-delivery-shipping.php" instead of "autoloader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,526 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP153825201,406
JavaScript3352991
CSS24029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity19.17
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods69
▷ Static methods1014.49%
▷ Public methods4768.12%
▷ Protected methods45.80%
▷ Private methods1826.09%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.20MB with 0.20MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/ icon-256x256.png209.55KB3.63KB▼ 98.27%