Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼141.52ms] Passed 4 tests
A check of server-side resources used by Ship to Multiple Addresses
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 25.99 ▼2.75 |
Dashboard /wp-admin | 3.19 ▲0.13 | 47.15 ▲4.46 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 34.83 ▲1.50 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 88.15 ▼564.49 |
Media Library /wp-admin/upload.php | 3.13 ▲0.12 | 33.39 ▼0.33 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Ship to Multiple Addresses
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲220 | 16.34 ▲0.71 | 12.26 ▲2.09 | 51.42 ▲7.66 |
Dashboard /wp-admin | 2,974 ▲40 | 5.94 ▼0.16 | 132.96 ▼9.17 | 113.71 ▲1.78 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.71 ▲0.01 | 63.14 ▼3.89 | 100.21 ▲13.33 |
Add New Post /wp-admin/post-new.php | 1,876 ▲193 | 18.86 ▲0.14 | 347.78 ▼34.43 | 114.25 ▲8.54 |
Media Library /wp-admin/upload.php | 1,840 ▲33 | 5.11 ▲0.09 | 150.70 ▼17.67 | 113.83 ▼1.44 |
Uninstaller [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ship-to-multiple-addresses/admin/partials/ship_to_multiple_addresses-admin-display.php
- > /wp-content/plugins/ship-to-multiple-addresses/public/partials/ship_to_multiple_addresses-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: ship to multiple addresses, multiple shipping, multiple shipping destinations
ship-to-multiple-addresses/ship_to_multiple_addresses.php 85% from 13 tests
"Ship to Multiple Addresses" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ship-to-multiple-addresses.php" instead of "ship_to_multiple_addresses.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin544 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 183 | 572 | 538 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/icon-256x256.png | 52.48KB | 17.93KB | ▼ 65.83% |