Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼1.05MB] [CPU: ▼176.97ms] Passed 4 tests
Analyzing server-side resources used by Send24
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.54 ▼0.17 | 15.32 ▼5.89 |
Dashboard /wp-admin | 2.59 ▼0.46 | 20.13 ▼26.08 |
Posts /wp-admin/edit.php | 2.59 ▼0.51 | 17.20 ▼26.86 |
Add New Post /wp-admin/post-new.php | 2.59 ▼2.84 | 16.30 ▼630.28 |
Media Library /wp-admin/upload.php | 2.59 ▼0.41 | 16.64 ▼24.65 |
Send24 /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wc_send24_shipping_method | 2.60 | 14.89 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
woocommerce_status_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Send24
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,837 ▲241 | 17.20 ▲1.12 | 27.73 ▲16.02 | 44.46 ▼2.02 |
Dashboard /wp-admin | 2,993 ▲62 | 5.96 ▼0.13 | 144.15 ▼5.95 | 105.21 ▼10.24 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.74 ▲0.04 | 73.52 ▼15.07 | 82.15 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,629 ▼54 | 21.88 ▲3.04 | 282.25 ▼103.32 | 103.04 ▼3.37 |
Media Library /wp-admin/upload.php | 1,827 ▲23 | 5.06 ▲0.04 | 175.65 ▼16.98 | 113.60 ▲0.45 |
Send24 /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wc_send24_shipping_method | 28 | 0.90 | 0.10 | 11.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/send24/class/class.send24.php+24
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 1 option in the database
- woocommerce_status_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wc_send24_shipping_method
- > Notice in wp-content/plugins/send24/class/class.send24.php+24
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/send24/class/class.shipping_method.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/send24/send24.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wc_send24_shipping_method
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wc_send24_shipping_method - 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 uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== send24 ===
)
send24/send24.php 92% from 13 tests
Analyzing the main PHP file in "Send24" version 1.0.1
The following require your attention:
- Description: Make the plugin description longer than 10 characters (currently 6 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,941 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 111 | 105 | 1,172 |
CSS | 2 | 22 | 3 | 442 |
JavaScript | 2 | 35 | 12 | 318 |
Markdown | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 83.00 |
▷ Minimum class complexity | 73.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 6.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 20 | 64.52% |
▷ Public methods | 30 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.23% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 138.37KB | 56.49KB | ▼ 59.17% |