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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.53ms] Passed 4 tests
This is a short check of server-side resources used by Belco.io for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.83 ▼0.84 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.44 ▼10.95 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.45 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.52 ▼21.12 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 35.07 ▼1.21 |
Server storage [IO: ▲0.43MB] [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: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Belco.io for Woocommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.31 ▼1.09 | 1.84 ▲0.08 | 44.00 ▼0.05 |
Dashboard /wp-admin | 2,226 ▲38 | 5.86 ▲0.01 | 104.01 ▼3.24 | 39.28 ▼1.91 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 1.99 ▼0.04 | 39.75 ▲0.07 | 36.68 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,546 ▲25 | 23.29 ▼0.02 | 677.97 ▲39.01 | 61.62 ▼1.25 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.17 ▼0.08 | 96.56 ▼10.10 | 43.70 ▼0.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/belcoio/templates/activate.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/belcoio/templates/settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/belcoio/templates/notice.php:2
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Customer card, instantly see all customer information when you receive or make a call.)
belcoio/belco.php 92% from 13 tests
Analyzing the main PHP file in "Belco.io for Woocommerce" version 0.9.4
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("belcoio.php" instead of "belco.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected585 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 114 | 67 | 458 |
CSS | 2 | 12 | 1 | 71 |
JavaScript | 2 | 4 | 0 | 30 |
SVG | 2 | 1 | 1 | 26 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 4 | 10.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.31MB with 0.22MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/1.png | 322.41KB | 97.14KB | ▼ 69.87% |