Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼170.52ms] Passed 4 tests
A check of server-side resources used by blu Logistics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.83 ▲12.91 |
Dashboard /wp-admin | 3.06 ▲0.00 | 42.50 ▼1.54 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 39.06 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.41 ▼670.31 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 29.34 ▼6.27 |
Server storage [IO: ▲5.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 140 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
blu Logistics: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.25 ▲0.18 | 7.72 ▲0.16 | 49.08 ▲4.82 |
Dashboard /wp-admin | 2,969 ▲38 | 5.85 ▼0.13 | 144.05 ▼2.17 | 112.92 ▲4.99 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 63.00 ▼7.36 | 93.43 ▲6.84 |
Add New Post /wp-admin/post-new.php | 1,670 ▼1,966 | 19.15 ▲4.23 | 357.39 ▼48.68 | 106.79 ▼0.51 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.02 | 155.91 ▲12.95 | 123.35 ▲0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% 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 0% 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 items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/blu-logistics/pdf_functions.php
- > /wp-content/plugins/blu-logistics/blu-logistics-delivery-shipping-method.php
- > /wp-content/plugins/blu-logistics/admin/label/lib/tcpdf/tools/tcpdf_addfont.php
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: current in wp-content/plugins/blu-logistics/admin/templates/render.inc.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/blu-logistics/admin/label/lib/FPDI-master/fpdi_bridge.php:23
- > PHP Notice
Undefined variable: total in wp-content/plugins/blu-logistics/admin/templates/render.inc.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/blu-logistics/admin/label/lib/FPDI-master/fpdi_bridge.php:23
- > PHP Notice
Undefined index: data in wp-content/plugins/blu-logistics/admin/label/display_label.php on line 17
- > PHP Notice
Undefined index: change_address in wp-content/plugins/blu-logistics/blu-terminal-ajax.php on line 31
- > PHP Notice
Undefined variable: rpp in wp-content/plugins/blu-logistics/admin/templates/render.inc.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/blu-logistics/blu-terminal.php:11
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/blu-logistics/admin/label/lib/fpdi/fpdi_bridge.php:23
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/blu-logistics/admin/label/lib/fpdi/fpdi_bridge.php:23
- > PHP Notice
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 94% from 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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Enabled this shipping method), #2 (bluLogistics), #3 (bluHome), #4 (bluPort Parcel), #5 (bluGlobal)
blu-logistics/blu-logistics-delivery-shipping-method.php 92% from 13 tests
The main PHP file in "blu Logistics" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("blu-logistics.php" instead of "blu-logistics-delivery-shipping-method.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin54,625 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 3,634 | 14,688 | 54,025 |
CSS | 6 | 53 | 27 | 435 |
JSON | 3 | 0 | 0 | 100 |
Markdown | 1 | 24 | 0 | 63 |
JavaScript | 2 | 0 | 17 | 2 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,337)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 495)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 191.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,337.00 |
Average method complexity | 9.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 495.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 929 | |
▷ Static methods | 107 | 11.52% |
▷ Public methods | 600 | 64.59% |
▷ Protected methods | 329 | 35.41% |
▷ Private methods | 0 | 0.00% |
Functions | 68 | |
▷ Named functions | 68 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 133 | |
▷ Global constants | 105 | 78.95% |
▷ Class constants | 28 | 21.05% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 47.12KB | 48.63KB | 0.00% |
admin/fancybox/fancy_shadow_sw.png | 0.33KB | 0.48KB | 0.00% |
admin/images/label.png | 0.77KB | 0.51KB | ▼ 33.67% |
admin/fancybox/fancy_title_right.png | 0.49KB | 0.82KB | 0.00% |
admin/images/fancybox_sprite.png | 1.33KB | 1.42KB | 0.00% |