Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.42ms] Passed 4 tests
A check of server-side resources used by Maintenance Mode with Timer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.14 ▼3.22 |
Dashboard /wp-admin | 3.39 ▲0.04 | 52.92 ▼11.28 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 53.53 ▲6.88 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 95.31 ▼3.61 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.66 ▲4.45 |
How It Works /wp-admin/admin.php?page=mtm-how-it-work | 3.28 | 32.38 |
Maintenance Mode - WPOS /wp-admin/admin.php?page=mtm-settings | 3.37 | 39.75 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
mtm_plugin_version |
widget_recent-comments |
widget_theysaidso_widget |
mtm_options |
Browser metrics Passed 4 tests
Maintenance Mode with Timer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲81 | 13.50 ▼0.90 | 1.70 ▼0.22 | 41.67 ▼2.96 |
Dashboard /wp-admin | 2,233 ▲48 | 5.89 ▲0.10 | 106.98 ▲3.35 | 40.42 ▼2.77 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▲0.03 | 40.55 ▲6.69 | 34.48 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 18.63 ▲0.96 | 605.47 ▼59.95 | 50.08 ▼10.50 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.21 ▲0.05 | 98.42 ▼2.08 | 43.18 ▲1.78 |
How It Works /wp-admin/admin.php?page=mtm-how-it-work | 966 | 2.15 | 24.08 | 25.05 |
Maintenance Mode - WPOS /wp-admin/admin.php?page=mtm-settings | 1,962 | 7.05 | 138.37 | 94.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- mtm_plugin_version
- widget_theysaidso_widget
- can_compress_scripts
- mtm_options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/maintenance-mode-with-timer/maintenance-mode-by-wpos.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
maintenance-mode-with-timer/maintenance-mode-by-wpos.php 92% from 13 tests
"Maintenance Mode with Timer" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("maintenance-mode-with-timer.php" instead of "maintenance-mode-by-wpos.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,317 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 263 | 319 | 1,936 |
PHP | 10 | 144 | 240 | 693 |
CSS | 4 | 67 | 73 | 667 |
SVG | 1 | 9 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ui-icons_555555_256x240.png | 6.84KB | 4.18KB | ▼ 38.84% |
assets/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
assets/images/overlay.png | 0.91KB | 0.10KB | ▼ 89.15% |
assets/images/sample-logo.png | 8.28KB | 3.94KB | ▼ 52.36% |