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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.71 ▼4.94 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.99 ▼13.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.08 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.15 ▼8.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.63 ▲1.73 |
Redbox Pickup /wp-admin/admin.php?page=redbox-pickup | 3.01 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.68 ▲0.17 | 1.64 ▼0.01 | 39.24 ▼4.90 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.03 | 92.39 ▼9.85 | 38.08 ▼7.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.03 | 39.74 ▲2.23 | 35.23 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 24.93 ▲1.68 | 605.96 ▼98.50 | 70.43 ▲15.63 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.00 | 97.63 ▼7.68 | 43.06 ▲0.63 |
Redbox Pickup /wp-admin/admin.php?page=redbox-pickup | 28 | 0.41 | 0.06 | 3.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
- > PHP Fatal error
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 ("")
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 65 | 10 | 749 |
CSS | 1 | 11 | 9 | 612 |
JavaScript | 1 | 6 | 9 | 367 |
SVG | 5 | 0 | 0 | 171 |
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 code | 0.36 |
Average class complexity | 16.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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