Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.16ms] Passed 4 tests
Analyzing server-side resources used by Small Package Quotes - USPS Edition
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 37.50 ▼4.64 |
Dashboard /wp-admin | 3.39 ▲0.08 | 52.51 ▲3.61 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.75 ▼0.28 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.01 ▼21.90 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 36.51 ▲2.19 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Small Package Quotes - USPS Edition
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.67 ▲0.42 | 1.68 ▼0.20 | 41.50 ▼1.65 |
Dashboard /wp-admin | 2,204 ▲24 | 5.62 ▲0.09 | 86.50 ▼2.89 | 41.07 ▲2.56 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.08 | 39.51 ▼1.76 | 37.44 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▲8 | 23.20 ▼0.50 | 640.15 ▼21.51 | 48.08 ▼1.04 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.18 ▲0.00 | 97.10 ▼7.08 | 40.51 ▼5.22 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/small-package-quotes-usps-edition/admin/tab/en-tab.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/small-package-quotes-usps-edition/en-install.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
small-package-quotes-usps-edition/small-package-quotes-usps-edition.php 85% from 13 tests
The entry point to "Small Package Quotes - USPS Edition" version 1.1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "6.4")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin7,377 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 1,010 | 1,508 | 5,161 |
JavaScript | 5 | 308 | 416 | 1,563 |
CSS | 3 | 112 | 30 | 636 |
JSON | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 204 | |
▷ Static methods | 100 | 49.02% |
▷ Public methods | 201 | 98.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.47% |
Functions | 31 | |
▷ Named functions | 28 | 90.32% |
▷ Anonymous functions | 3 | 9.68% |
Constants | 56 | |
▷ Global constants | 56 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/tab/location/assets/images/delete.png | 3.49KB | 0.86KB | ▼ 75.41% |
admin/tab/location/assets/images/edit.png | 3.09KB | 0.70KB | ▼ 77.43% |