Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/floship-insurance/public/floship-insurance-custom-fields.php+99
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.98ms] Passed 4 tests
An overview of server-side resources used by Floship Parcel Shipping Insurance
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 47.22 ▲5.27 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.91 ▼3.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.26 ▼8.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.96 ▼5.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.96 ▲2.34 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Floship Parcel Shipping Insurance: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▲0.15 | 1.78 ▲0.03 | 40.47 ▼9.45 |
Dashboard /wp-admin | 2,195 ▲18 | 5.55 ▼0.05 | 90.44 ▼12.76 | 41.10 ▼2.89 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▲0.01 | 35.03 ▼3.78 | 33.31 ▼3.20 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 20.95 ▼2.19 | 737.31 ▲82.21 | 71.69 ▲15.51 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.02 | 100.09 ▲3.18 | 41.52 ▼1.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/floship-insurance/admin/floship-insurance-admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floship-insurance/admin/floship-insurance-meta-field-updates.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floship-insurance/public/floship-insurance-public.php:63
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/floship-insurance/public/floship-insurance-custom-fields.php on line 99
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floship-insurance/public/floship-insurance-data-store.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #10, #2, #3, #4, #5, #6, #7, #8, #9 in floship-insurance/assets to your readme.txt
floship-insurance/floship-insurance.php 92% from 13 tests
"Floship Parcel Shipping Insurance" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin406 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 149 | 104 | 388 |
JavaScript | 1 | 9 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/floship-logo-navy.png | 9.22KB | 4.27KB | ▼ 53.64% |
public/images/old_floship-logo-navy.png | 9.58KB | 5.39KB | ▼ 43.77% |