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.04MB] [CPU: ▼3.19ms] Passed 4 tests
This is a short check of server-side resources used by Enecto WL plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.82 ▼0.03 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.97 ▲0.92 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.20 ▲1.69 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.54 ▼15.13 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 36.31 ▲1.50 |
Dashboard /wp-admin/admin.php?page=enectowl-dashboard | 3.25 | 29.02 |
Settings /wp-admin/admin.php?page=enectowl-settings | 3.24 | 26.23 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Enecto WL plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,216 ▲470 | 15.99 ▲1.63 | 1.62 ▼0.07 | 39.43 ▼3.52 |
Dashboard /wp-admin | 2,616 ▲425 | 6.79 ▲1.93 | 155.45 ▲34.30 | 42.30 ▼2.91 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 2.05 ▲0.09 | 37.54 ▲2.22 | 36.70 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 17.54 ▼0.83 | 676.24 ▲12.92 | 52.01 ▼2.54 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.18 ▲0.03 | 95.88 ▼1.92 | 42.71 ▲0.58 |
Dashboard /wp-admin/admin.php?page=enectowl-dashboard | 1,727 | 4.04 | 84.86 | 62.99 |
Settings /wp-admin/admin.php?page=enectowl-settings | 818 | 2.05 | 25.39 | 23.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enectowl/enectowl.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=enectowl-dashboard
- > Network (severe)
https://wl.enecto.com/service/statistics?period=30 - Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
- > GET request to /wp-admin/admin.php?page=enectowl-dashboard
- > Network (severe)
https://wl.enecto.com/service/leads - Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in enectowl/assets to your readme.txt
- Plugin Name: You should set the name of your plugin on the first line (
=== enectowl ===
)
enectowl/enectowl.php Passed 13 tests
"Enecto WL plugin" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Provides EnectoWL statistics and leads to Wordpress admin dashboard.
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
There were no executable files found in this plugin14,720 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 2,536 | 1,671 | 13,986 |
PHP | 5 | 96 | 14 | 413 |
CSS | 4 | 12 | 8 | 321 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/flags16.png | 61.80KB | 19.90KB | ▼ 67.79% |