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.16MB] [CPU: ▼15.86ms] Passed 4 tests
Server-side resources used by Frete Click
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.59 ▼1.05 |
Dashboard /wp-admin | 3.20 ▼0.10 | 33.28 ▼15.85 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 34.61 ▼12.92 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.44 | 66.18 ▼30.67 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 31.72 ▼3.99 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 211 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Frete Click: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.58 ▼0.83 | 1.96 ▼0.00 | 45.65 ▲2.60 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.95 | 111.25 ▲7.30 | 42.38 ▼2.62 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.03 | 35.33 ▼5.51 | 34.99 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.86 ▲0.17 | 662.82 ▼3.73 | 60.61 ▲13.59 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.03 | 94.11 ▼0.82 | 41.07 ▼2.88 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 54× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Intl\ormalizer\ormalizer' not found in wp-content/plugins/freteclick/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function is_type() on null in wp-content/plugins/freteclick/views/templates/display_product_layout.php:6
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/freteclick/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/freteclick/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/freteclick/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/freteclick/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/freteclick/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/freteclick/vendor/guzzlehttp/psr7/src/UploadedFile.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/freteclick/vendor/guzzlehttp/psr7/src/InflateStream.php:20
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/freteclick/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Contributors: Contributors not specified
- Requires php: Invalid version format
freteclick/freteclick.php Passed 13 tests
"Frete Click" version 1.1.20's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
Plugin para cotação de fretes utilizando a API da Frete Click.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin33,696 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 157 | 2,594 | 6,315 | 28,666 |
Markdown | 15 | 1,174 | 0 | 3,490 |
JSON | 11 | 1 | 0 | 1,160 |
JavaScript | 1 | 21 | 12 | 208 |
YAML | 5 | 22 | 3 | 91 |
CSS | 2 | 3 | 2 | 56 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
SVG | 1 | 0 | 0 | 6 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 14.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 106 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 106 | 100.00% |
▷ Final classes | 25 | 23.58% |
Methods | 856 | |
▷ Static methods | 195 | 22.78% |
▷ Public methods | 708 | 82.71% |
▷ Protected methods | 7 | 0.82% |
▷ Private methods | 141 | 16.47% |
Functions | 166 | |
▷ Named functions | 74 | 44.58% |
▷ Anonymous functions | 92 | 55.42% |
Constants | 195 | |
▷ Global constants | 77 | 39.49% |
▷ Class constants | 118 | 60.51% |
▷ Public constants | 118 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) logo.png | 4.66KB | 0.00KB | ▼ 100.00% |
(invalid) views/img/PAC.png | 3.57KB | 0.00KB | ▼ 100.00% |
views/img/SEDEX.png | 16.15KB | 7.51KB | ▼ 53.46% |