72% redbox-pickup

Code Review | RedBox Pickup

WordPress plugin RedBox Pickup scored72%from 54 tests.

About plugin

  • Plugin page: redbox-pickup
  • Plugin version: 1.33
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2020
  • Latest release: Nov 13, 2023
  • Number of updates: 61
  • Update frequency: every 19.1 days
  • Top authors: redboxsa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,807 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.11ms] Passed 4 tests

Server-side resources used by RedBox Pickup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.71 ▼4.94
Dashboard /wp-admin3.31 ▼0.0447.99 ▼13.77
Posts /wp-admin/edit.php3.36 ▲0.0049.08 ▼1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.15 ▼8.47
Media Library /wp-admin/upload.php3.23 ▲0.0035.63 ▲1.73
Redbox Pickup /wp-admin/admin.php?page=redbox-pickup3.0123.19

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

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

Browser metrics Passed 4 tests

A check of browser resources used by RedBox Pickup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.68 ▲0.171.64 ▼0.0139.24 ▼4.90
Dashboard /wp-admin2,195 ▲185.63 ▼0.0392.39 ▼9.8538.08 ▼7.54
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0339.74 ▲2.2335.23 ▲0.75
Add New Post /wp-admin/post-new.php1,535 ▲924.93 ▲1.68605.96 ▼98.5070.43 ▲15.63
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0097.63 ▼7.6843.06 ▲0.63
Redbox Pickup /wp-admin/admin.php?page=redbox-pickup280.410.063.22

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

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/redbox-pickup/redbox.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redbox-pickup/admin/new_method.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/redbox-pickup/front/front.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=redbox-pickup
    • > Network (severe)
    wp-admin/admin.php?page=redbox-pickup - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (select_point.png), #2 (selected_point.png), #3 (result.png)
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

redbox-pickup/redbox.php 92% from 13 tests

Analyzing the main PHP file in "RedBox Pickup" version 1.33
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("redbox-pickup.php" instead of "redbox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,899 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP46510749
CSS1119612
JavaScript169367
SVG500171

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.25
▷ Minimum class complexity3.00
▷ Maximum class complexity42.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods37
▷ Static methods410.81%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.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
There are no PNG files in this plugin