Benchmarks
Plugin footprint 65% 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.35MB] [CPU: ▼5.87ms] Passed 4 tests
Server-side resources used by Freight Shipping Quote
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 37.31 ▼8.42 |
Dashboard /wp-admin | 3.70 ▲0.36 | 47.23 ▼15.15 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 51.76 ▲1.69 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 96.57 ▼1.61 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 39.78 ▲6.85 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_freight_shipping_quotes |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Freight Shipping Quote: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲78 | 14.32 ▼0.03 | 1.57 ▼0.18 | 37.63 ▼5.82 |
Dashboard /wp-admin | 2,227 ▲49 | 5.53 ▼0.10 | 103.63 ▼8.53 | 46.53 ▲5.46 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.15 ▲0.13 | 41.75 ▲5.65 | 35.42 ▲3.05 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.18 ▲0.07 | 670.53 ▼49.17 | 44.26 ▼10.97 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.16 ▼0.10 | 97.91 ▲1.64 | 41.65 ▼0.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_freight_shipping_quotes
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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 | 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 fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(wp-content/plugins/freight-shipping-quote/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/freight-shipping-quote/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/freight-shipping-quote/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/freight-shipping-quote/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Warning
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 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in freight-shipping-quote/assets to your readme.txt
freight-shipping-quote/freight-shipping-quote.php 92% from 13 tests
The main PHP script in "Freight Shipping Quote" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,756 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,054 | 1,742 | 3,905 |
Markdown | 1 | 82 | 0 | 255 |
CSS | 4 | 47 | 0 | 232 |
JavaScript | 4 | 27 | 0 | 110 |
JSON | 2 | 0 | 0 | 108 |
XML | 1 | 6 | 11 | 95 |
YAML | 1 | 6 | 0 | 32 |
SVG | 2 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 4 | 19.05% |
Methods | 225 | |
▷ Static methods | 28 | 12.44% |
▷ Public methods | 189 | 84.00% |
▷ Protected methods | 6 | 2.67% |
▷ Private methods | 30 | 13.33% |
Functions | 16 | |
▷ Named functions | 6 | 37.50% |
▷ Anonymous functions | 10 | 62.50% |
Constants | 6 | |
▷ Global constants | 6 | 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
No PNG images were found in this plugin