Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.22ms] Passed 4 tests
Analyzing server-side resources used by Error Establishing DB Connection Monitor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.96 ▼0.65 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.14 ▲1.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.92 ▼5.77 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.56 ▼18.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.60 ▲0.04 |
Error Establishing DB Connection Monitor Menu /wp-admin/options-general.php?page=EE-DB-connection-monitor | 3.21 | 32.09 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Error Establishing DB Connection Monitor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.32 ▲0.07 | 1.66 ▼0.23 | 44.79 ▲1.47 |
Dashboard /wp-admin | 2,199 ▲19 | 5.51 ▼0.15 | 89.58 ▼0.10 | 37.74 ▼3.66 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.05 | 36.10 ▼5.18 | 32.61 ▼10.81 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.13 ▼0.25 | 674.10 ▲57.89 | 60.19 ▲7.69 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.40 ▲0.18 | 95.59 ▼8.20 | 41.67 ▼2.41 |
Error Establishing DB Connection Monitor Menu /wp-admin/options-general.php?page=EE-DB-connection-monitor | 884 | 2.00 | 29.67 | 31.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 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 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: database, monitor, establishing, monitoring, error...
error-establishing-db-connection-monitor/ee-db-connection-monitor.php 77% from 13 tests
This is the main PHP file of "Error Establishing DB Connection Monitor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("error-establishing-db-connection-monitor.php" instead of "ee-db-connection-monitor.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin254 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 39 | 53 | 164 |
CSS | 1 | 15 | 3 | 66 |
Bourne Shell | 1 | 4 | 0 | 22 |
JavaScript | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 13 | 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 | 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
7 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ns-sidebar/ns-like.png | 3.43KB | 2.50KB | ▼ 27.21% |
ns-sidebar/share-facebook.png | 0.90KB | 0.86KB | ▼ 3.71% |
ns-sidebar/share-twitter.png | 1.25KB | 1.27KB | 0.00% |
ns-sidebar/ns-follow.png | 4.95KB | 2.74KB | ▼ 44.66% |
ns-sidebar/ns-visit.png | 4.33KB | 2.60KB | ▼ 39.89% |