Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.33ms] Passed 4 tests
A check of server-side resources used by Plugin BlueX for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.99 ▼3.15 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.45 ▼2.57 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.74 ▲1.91 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.46 ▼14.59 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.69 ▼1.00 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Plugin BlueX for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.70 ▲0.47 | 1.72 ▲0.01 | 36.69 ▼11.08 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.03 | 94.04 ▼8.61 | 43.34 ▼1.28 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.03 | 40.01 ▲0.18 | 36.88 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 25.32 ▲1.68 | 600.01 ▼88.88 | 60.70 ▲4.62 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.14 ▼0.06 | 97.41 ▼8.98 | 41.32 ▼0.07 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% 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 (Blue Express general settings), #2 (Blue Express custom services' settings), #3 (Blue Express shipping methods in the cart)
bluex-for-woocommerce/woocommerce-bluex.php 69% from 13 tests
The main file in "Plugin BlueX for WooCommerce" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bluex-for-woocommerce.php" instead of "woocommerce-bluex.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "3.0")
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,685 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 851 | 2,130 | 4,234 |
JavaScript | 12 | 70 | 122 | 396 |
CSS | 2 | 11 | 3 | 49 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 4 | 10.81% |
▷ Concrete classes | 33 | 89.19% |
▷ Final classes | 0 | 0.00% |
Methods | 241 | |
▷ Static methods | 25 | 10.37% |
▷ Public methods | 170 | 70.54% |
▷ Protected methods | 60 | 24.90% |
▷ Private methods | 11 | 4.56% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 25.39KB | 11.98KB | ▼ 52.79% |