Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.77ms] Passed 4 tests
Server-side resources used by WP Maintenance Mode & Site Under Construction
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.49 ▼4.26 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.11 ▲0.36 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 43.88 ▼2.74 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.69 ▲1.30 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.05 ▼0.45 |
Server storage [IO: ▲4.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Maintenance Mode & Site Under Construction
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.24 ▼1.32 | 1.72 ▲0.10 | 40.66 ▼6.71 |
Dashboard /wp-admin | 2,222 ▲36 | 4.84 ▼1.04 | 108.35 ▼4.37 | 39.18 ▼1.91 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▼0.06 | 38.14 ▲3.64 | 34.40 ▲1.87 |
Add New Post /wp-admin/post-new.php | 1,546 ▲26 | 22.81 ▼0.54 | 577.91 ▼75.70 | 58.69 ▲5.08 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.19 ▲0.05 | 93.00 ▼5.62 | 43.75 ▼1.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
5 plugin tags: landing page, coming soon page, maintenance mode, coming soon, under construction
wp-maintenance-mode-site-under-construction/maintenance.php 77% from 13 tests
"WP Maintenance Mode & Site Under Construction" version 3.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:
- Domain Path: The domain path folder was not found ("/languages")
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-maintenance-mode-site-under-construction.php" instead of "maintenance.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected14,872 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 33 | 469 | 919 | 4,260 |
CSS | 10 | 98 | 92 | 3,521 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 4 | 117 | 30 | 894 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.89MB with 0.70MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
textures/free/texture-2/light-of-black.png | 31.80KB | 13.54KB | ▼ 57.43% |
(invalid) textures/free/texture-2/light-of-black-big.png | 874.91KB | 0.00KB | ▼ 100.00% |