84% box-now-delivery

Code Review | BOX NOW Delivery

WordPress plugin BOX NOW Delivery scored84%from 54 tests.

About plugin

  • Plugin page: box-now-delivery
  • Plugin version: 2.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2023
  • Latest release: Nov 29, 2023
  • Number of updates: 12
  • Update frequency: every 13.8 days
  • Top authors: boxnow (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /1,875 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.17MB] [CPU: ▼8.54ms] Passed 4 tests

This is a short check of server-side resources used by BOX NOW Delivery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1738.76 ▼9.10
Dashboard /wp-admin3.47 ▲0.1649.07 ▼6.37
Posts /wp-admin/edit.php3.58 ▲0.2244.35 ▼8.45
Add New Post /wp-admin/post-new.php6.07 ▲0.1883.20 ▼10.23
Media Library /wp-admin/upload.php3.39 ▲0.1637.47 ▲4.59

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for BOX NOW Delivery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5214.18 ▼0.201.63 ▼0.4637.48 ▼12.41
Dashboard /wp-admin2,216 ▲365.53 ▼0.1491.22 ▼6.3039.13 ▼1.15
Posts /wp-admin/edit.php2,125 ▲251.99 ▼0.0141.19 ▲3.2437.07 ▲5.42
Add New Post /wp-admin/post-new.php1,384 ▼14216.75 ▼6.53593.37 ▼14.2948.46 ▼4.16
Media Library /wp-admin/upload.php1,421 ▲274.28 ▲0.1299.62 ▼9.3043.90 ▼3.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/box-now-delivery/includes/box-now-delivery-cancel-order.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/box-now-delivery/box-now-delivery.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/box-now-delivery/includes/box-now-delivery-admin-page.php:28

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in box-now-delivery/assets to your readme.txt
You can look at the official readme.txt

box-now-delivery/box-now-delivery.php Passed 13 tests

"BOX NOW Delivery" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
A Wordpress plugin from BOX NOW to integrate your eshop with our services.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,928 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP62261901,306
JavaScript38679497
CSS2212125

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity17.50
▷ Minimum class complexity16.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin