Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲2.03ms] Passed 4 tests
Server-side resources used by Maintenance mode Z
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.52 ▼2.58 |
Dashboard /wp-admin | 3.44 ▲0.13 | 48.75 ▼4.49 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.52 ▲11.25 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 100.45 ▲6.36 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 41.22 ▲8.83 |
Maintenance mode Z /wp-admin/options-general.php?page=mmode | 3.40 | 43.62 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Maintenance mode Z
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲221 | 14.84 ▲0.46 | 5.63 ▲3.48 | 43.31 ▼3.13 |
Dashboard /wp-admin | 2,274 ▲86 | 6.27 ▲0.46 | 120.92 ▲4.51 | 44.55 ▼2.89 |
Posts /wp-admin/edit.php | 2,176 ▲87 | 2.86 ▲0.85 | 46.61 ▲7.56 | 33.95 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,277 ▼256 | 15.51 ▼7.66 | 485.81 ▼138.99 | 21.33 ▼43.20 |
Media Library /wp-admin/upload.php | 1,472 ▲90 | 5.45 ▲1.26 | 114.38 ▲14.51 | 42.69 ▲0.63 |
Maintenance mode Z /wp-admin/options-general.php?page=mmode | 2,013 | 7.53 | 150.72 | 134.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-z/templates/template-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance-mode-z/mmode.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-z/templates/slider.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-z/templates/template-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-z/templates/template-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-z/templates/template-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/maintenance-mode-z/templates/template-functions.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== maintenance-mode-z ===
)
maintenance-mode-z/mmode.php 92% from 13 tests
Analyzing the main PHP file in "Maintenance mode Z" version 1.1.0
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("maintenance-mode-z.php" instead of "mmode.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
No dangerous file extensions were detected3,812 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 33 | 230 | 262 | 1,858 |
PHP | 7 | 110 | 15 | 1,062 |
CSS | 9 | 113 | 160 | 892 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
24 PNG files occupy 0.49MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/images/404.png | 88.56KB | 47.10KB | ▼ 46.81% |
image.png | 4.22KB | 0.78KB | ▼ 81.40% |
css/images/ui-icons_0073ea_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_flat_0_eeeeee_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
templates/slider/btn_controls.png | 0.71KB | 0.44KB | ▼ 37.77% |