Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.16MB] [CPU: ▼46.98ms] Passed 4 tests
This is a short check of server-side resources used by Boltron - Ecommerce Merchant Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▼0.64 | 14.22 ▼37.35 |
Dashboard /wp-admin | 2.89 ▼0.46 | 16.24 ▼38.83 |
Posts /wp-admin/edit.php | 2.89 ▼0.51 | 18.00 ▼36.21 |
Add New Post /wp-admin/post-new.php | 2.89 ▼3.04 | 15.24 ▼75.51 |
Media Library /wp-admin/upload.php | 2.89 ▼0.38 | 15.84 ▼18.97 |
Server storage [IO: ▲0.26MB] [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: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Boltron - Ecommerce Merchant Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.44 ▲0.09 | 1.62 ▼0.20 | 42.07 ▼2.91 |
Dashboard /wp-admin | 2,214 ▲37 | 5.61 ▲0.03 | 85.86 ▼16.38 | 41.61 ▼5.94 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.03 ▼0.00 | 41.91 ▲7.01 | 39.46 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.20 ▲0.08 | 654.92 ▼42.69 | 51.04 ▼5.03 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.19 ▲0.01 | 100.38 ▼11.43 | 44.15 ▼5.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/boltron-e-commerce-merchant-reviews/boltron.php+315
Accessing static property Boltron\Boltron::$backend as non static
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/boltron-e-commerce-merchant-reviews/core/frontend.php
- > /wp-content/plugins/boltron-e-commerce-merchant-reviews/core/backend.php
- > /wp-content/plugins/boltron-e-commerce-merchant-reviews/boltron.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function BTRN() in wp-content/plugins/boltron-e-commerce-merchant-reviews/templates/frontend/grade-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function BTRN() in wp-content/plugins/boltron-e-commerce-merchant-reviews/templates/frontend/shortcode-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/boltron-e-commerce-merchant-reviews/templates/backend/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function BTRN() in wp-content/plugins/boltron-e-commerce-merchant-reviews/templates/frontend/cs-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in boltron-e-commerce-merchant-reviews/assets to your readme.txt
boltron-e-commerce-merchant-reviews/boltron.php 77% from 13 tests
The main PHP file in "Boltron - Ecommerce Merchant Reviews" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("boltron-e-commerce-merchant-reviews.php" instead of "boltron.php")
- Domain Path: The domain path points to a folder that does not exist ("/i18n/languages/")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin1,531 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 343 | 256 | 1,114 |
CSS | 2 | 31 | 2 | 202 |
JavaScript | 7 | 59 | 20 | 200 |
SVG | 2 | 0 | 0 | 14 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 51.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 1 | 2.27% |
▷ Public methods | 40 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.09% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.51KB | 0.61KB | 0.00% |