Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.54ms] Passed 4 tests
This is a short check of server-side resources used by Change Shipping Label
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.12 ▼9.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.47 ▼4.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.86 ▼4.11 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.64 ▼15.80 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.50 ▼0.18 |
Change Shipping Labels /wp-admin/admin.php?page=change-shipping-labels | 3.21 | 32.20 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Change Shipping Label
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.47 ▼0.20 | 1.64 ▼0.22 | 38.46 ▼0.51 |
Dashboard /wp-admin | 2,206 ▲21 | 5.88 ▼0.02 | 107.00 ▲4.89 | 44.19 ▼2.01 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.07 | 39.69 ▼1.57 | 36.19 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,534 ▼10 | 23.14 ▲4.88 | 617.58 ▲11.16 | 53.76 ▼15.46 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.13 | 94.13 ▼7.78 | 39.39 ▼6.80 |
Change Shipping Labels /wp-admin/admin.php?page=change-shipping-labels | 844 | 2.06 | 25.69 | 27.95 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: checkout, cart, customization, woocommerce, shipping...
change-shipping-label/change-shipping-label.php Passed 13 tests
The main PHP script in "Change Shipping Label" version 1.2 is automatically included on every request by WordPress
77 characters long description:
A simple plugin for changing shipping labels in WooCommece cart and checkout.
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
No dangerous file extensions were detected162 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 37 | 162 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin