Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼2.80ms] Passed 4 tests
A check of server-side resources used by WP Maintenance
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 43.59 ▲3.60 |
Dashboard /wp-admin | 3.68 ▲0.34 | 53.46 ▼7.16 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 57.55 ▲3.85 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 86.75 ▼11.49 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 41.85 ▲7.88 |
Pictures /wp-admin/admin.php?page=wp-maintenance-picture | 3.71 | 43.59 |
CountDown /wp-admin/admin.php?page=wp-maintenance-countdown | 3.67 | 42.93 |
CSS Style /wp-admin/admin.php?page=wp-maintenance-css | 3.63 | 40.45 |
General /wp-admin/admin.php?page=wp-maintenance | 3.66 | 43.72 |
Social Networks /wp-admin/admin.php?page=wp-maintenance-socialnetworks | 3.68 | 40.62 |
SEO /wp-admin/admin.php?page=wp-maintenance-seo | 3.63 | 43.66 |
Colors & Fonts /wp-admin/admin.php?page=wp-maintenance-colors | 3.85 | 41.17 |
Settings /wp-admin/admin.php?page=wp-maintenance-settings | 3.67 | 40.76 |
Footer /wp-admin/admin.php?page=wp-maintenance-footer | 3.66 | 40.96 |
Server storage [IO: ▲5.77MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 1,020 new files
Database: no new tables, 18 new options
New WordPress options |
---|
wp_maintenance_settings_footer |
wp_maintenance_settings_countdown |
wp_maintenance_settings_socialnetworks |
wp_maintenance_settings_seo |
widget_theysaidso_widget |
wp_maintenance_settings_picture |
theysaidso_admin_options |
wp_maintenance_settings_options |
wp_maintenance_active |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Maintenance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲124 | 14.34 ▼0.37 | 1.61 ▼0.15 | 42.04 ▼0.86 |
Dashboard /wp-admin | 2,276 ▲96 | 5.54 ▼0.09 | 92.47 ▼0.73 | 83.26 ▲36.25 |
Posts /wp-admin/edit.php | 2,199 ▲99 | 2.00 ▼0.01 | 39.21 ▲0.11 | 36.64 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,765 ▲228 | 21.98 ▼1.50 | 751.52 ▲48.01 | 46.39 ▼8.91 |
Media Library /wp-admin/upload.php | 1,499 ▲96 | 4.14 ▼0.10 | 109.16 ▲3.68 | 73.00 ▲29.55 |
Pictures /wp-admin/admin.php?page=wp-maintenance-picture | 1,782 | 5.19 | 99.67 | 51.04 |
CountDown /wp-admin/admin.php?page=wp-maintenance-countdown | 4,784 | 8.98 | 189.44 | 169.20 |
CSS Style /wp-admin/admin.php?page=wp-maintenance-css | 2,363 | 5.57 | 83.85 | 117.57 |
General /wp-admin/admin.php?page=wp-maintenance | 1,910 | 7.83 | 139.94 | 121.40 |
Social Networks /wp-admin/admin.php?page=wp-maintenance-socialnetworks | 1,857 | 5.16 | 63.24 | 112.30 |
SEO /wp-admin/admin.php?page=wp-maintenance-seo | 1,463 | 4.81 | 62.09 | 88.66 |
Colors & Fonts /wp-admin/admin.php?page=wp-maintenance-colors | 5,187 | 6.78 | 142.50 | 117.80 |
Settings /wp-admin/admin.php?page=wp-maintenance-settings | 1,800 | 5.11 | 65.91 | 45.11 |
Footer /wp-admin/admin.php?page=wp-maintenance-footer | 1,855 | 7.72 | 134.87 | 95.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 17 options in the database
- wp_maintenance_version
- widget_recent-posts
- wp_maintenance_settings_socialnetworks
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_maintenance_settings
- widget_recent-comments
- wp_maintenance_settings_seo
- wp_maintenance_list_socialnetworks
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 14× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-maintenance/includes/functions.php
- > /wp-content/plugins/wp-maintenance/views/wp-maintenance-css.php
- > /wp-content/plugins/wp-maintenance/includes/shortcodes.php
- > /wp-content/plugins/wp-maintenance/views/wp-maintenance-seo.php
- > /wp-content/plugins/wp-maintenance/themes/default/index2.php
- > /wp-content/plugins/wp-maintenance/views/wp-maintenance-countdown.php
- > /wp-content/plugins/wp-maintenance/views/wp-maintenance-dashboard.php
- > /wp-content/plugins/wp-maintenance/themes/default/index.php
- > /wp-content/plugins/wp-maintenance/views/wp-maintenance-picture.php
- > /wp-content/plugins/wp-maintenance/views/wp-maintenance-socialnetworks.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_maintenance' not found in wp-content/plugins/wp-maintenance/classes/countdown.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=wp-maintenance-colors
- > Network (severe)
https://fonts.googleapis.com/css?family=Helvetica - Failed to load resource: the server responded with a status of 403 ()
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: maintenance, launch, coming soon, construction
wp-maintenance/wp-maintenance.php 92% from 13 tests
The entry point to "WP Maintenance" version 6.1.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)
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
Everything looks great! No dangerous files found in this plugin6,212 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 683 | 209 | 3,156 |
CSS | 19 | 23 | 218 | 1,119 |
JavaScript | 106 | 97 | 107 | 828 |
LESS | 11 | 274 | 273 | 572 |
PO File | 1 | 304 | 477 | 518 |
Markdown | 2 | 9 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 5.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 28 | |
▷ Static methods | 5 | 17.86% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
855 PNG files occupy 4.18MB with 2.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
socialicons/style1/128/android.png | 2.89KB | 1.17KB | ▼ 59.44% |
socialicons/style2/64/facebook.png | 1.31KB | 0.28KB | ▼ 78.91% |
socialicons/style6/512/behance.png | 5.72KB | 6.48KB | 0.00% |
socialicons/style3/32/wordpress.png | 1.62KB | 0.50KB | ▼ 69.02% |
socialicons/style1/512/instagram.png | 10.81KB | 4.70KB | ▼ 56.50% |