Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.78ms] Passed 4 tests
A check of server-side resources used by BlueGlass Maintenance
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.82 ▼1.39 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.74 ▼16.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.18 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.76 ▼16.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.45 ▲1.12 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
bgpo_main_pack |
db_upgraded |
bgpo_date_pack |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BlueGlass Maintenance
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲129 | 14.75 ▲0.46 | 2.11 ▲0.36 | 29.23 ▼12.89 |
Dashboard /wp-admin | 2,266 ▲89 | 5.58 ▼0.09 | 87.09 ▼8.74 | 94.57 ▲55.06 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.97 ▼0.07 | 36.31 ▼0.29 | 30.79 ▼4.56 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.06 ▲0.12 | 684.95 ▲63.81 | 64.52 ▲10.57 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▲0.06 | 102.70 ▲4.20 | 44.13 ▲2.85 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- can_compress_scripts
- bgpo_date_pack
- bgpo_main_pack
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/blueglass-maintenance/dist/parts/content.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: email in wp-content/plugins/blueglass-maintenance/dist/parts/settings.php on line 8
- > PHP Notice
Undefined variable: status in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 36
- > PHP Notice
Undefined variable: upd in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 3
- > PHP Notice
Undefined variable: status in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 27
- > PHP Notice
Undefined variable: upd in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 5
- > PHP Notice
Undefined variable: admin in wp-content/plugins/blueglass-maintenance/dist/parts/settings.php on line 8
- > PHP Notice
Undefined variable: url in wp-content/plugins/blueglass-maintenance/dist/parts/content.php on line 20
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: blueglass, maintenance, admin
blueglass-maintenance/blueglass.php 85% from 13 tests
The main PHP script in "BlueGlass Maintenance" version 1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blueglass-maintenance.php" instead of "blueglass.php")
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
Everything looks great! No dangerous files found in this plugin295 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 11 | 3 | 142 |
PHP | 4 | 47 | 11 | 137 |
SVG | 2 | 0 | 1 | 12 |
JavaScript | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/bg-logo.png | 7.56KB | 4.54KB | ▼ 39.98% |
dist/img/bg-cov.png | 3.06KB | 2.85KB | ▼ 6.81% |