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.22MB] [CPU: ▼0.75ms] Passed 4 tests
Analyzing server-side resources used by NS Maintenance Mode for WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 46.41 ▲4.03 |
Dashboard /wp-admin | 3.58 ▲0.28 | 53.80 ▲3.08 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 54.97 ▼5.02 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.22 | 97.21 ▼5.08 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 42.65 ▲7.85 |
Maintenance Mode /wp-admin/admin.php?page=ns-maintenance-mode-for-wp/ns-admin-options/ns_admin_option_dashboard.php | 3.45 | 48.41 |
Add New /wp-admin/post-new.php?post_type=subscriber | 3.55 | 65.06 |
/wp-admin/admin.php?page=plugineye276 | 3.43 | 38.29 |
Subscribers /wp-admin/edit.php?post_type=subscriber | 3.51 | 42.70 |
How to install premium version /wp-admin/admin.php?page=ns-rac-graph-stats | 3.40 | 37.51 |
Server storage [IO: ▲2.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
NS Maintenance Mode for WP: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲209 | 14.83 ▲0.45 | 1.86 ▲0.07 | 42.50 ▼1.99 |
Dashboard /wp-admin | 2,383 ▲203 | 6.19 ▲0.60 | 123.28 ▲31.26 | 92.19 ▲53.68 |
Posts /wp-admin/edit.php | 2,331 ▲228 | 3.38 ▲1.35 | 51.56 ▲12.60 | 78.13 ▲40.93 |
Add New Post /wp-admin/post-new.php | 1,739 ▲211 | 22.55 ▼0.62 | 593.12 ▼54.51 | 34.82 ▼18.64 |
Media Library /wp-admin/upload.php | 1,477 ▲77 | 4.25 ▲0.04 | 82.78 ▼20.61 | 84.17 ▲36.24 |
Maintenance Mode /wp-admin/admin.php?page=ns-maintenance-mode-for-wp/ns-admin-options/ns_admin_option_dashboard.php | 4,515 | 12.65 | 308.69 | 103.14 |
Add New /wp-admin/post-new.php?post_type=subscriber | 2,272 | 7.76 | 190.97 | 119.18 |
/wp-admin/admin.php?page=plugineye276 | 1,133 | 3.21 | 39.41 | 57.91 |
Subscribers /wp-admin/edit.php?post_type=subscriber | 1,322 | 3.36 | 46.19 | 78.70 |
How to install premium version /wp-admin/admin.php?page=ns-rac-graph-stats | 732 | 1.70 | 11.46 | 19.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ns-rac-graph-stats
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
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
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/ns-maintenance-mode-for-wp/index.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-maintenance-mode-for-wp/ns-mm-js.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ns-maintenance-mode-for-wp/ns-maintenance-mode.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-maintenance-mode-for-wp/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-maintenance-mode-for-wp/csvMaker.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-maintenance-mode-for-wp/ns-mm-css.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ns-maintenance-mode-for-wp/ns-mm-options-page-html.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ns-maintenance-mode-for-wp/ns-mm-options.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ns-maintenance-mode-for-wp/ns-admin-options/inc.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=ns-maintenance-mode-for-wp/ns-admin-options/ns_admin_option_dashboard.php
- > Network (severe)
wp-content/plugins/ns-maintenance-mode-for-wp//assets/fonts/fontawesome-webfont.woff2?v=4.5.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=ns-maintenance-mode-for-wp/ns-admin-options/ns_admin_option_dashboard.php
- > Network (severe)
wp-content/plugins/ns-maintenance-mode-for-wp//assets/fonts/fontawesome-webfont.woff?v=4.5.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=ns-maintenance-mode-for-wp/ns-admin-options/ns_admin_option_dashboard.php
- > Network (severe)
wp-content/plugins/ns-maintenance-mode-for-wp//assets/fonts/fontawesome-webfont.ttf?v=4.5.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Maintenance Mode Settings.), #2 (View frontend example.)
ns-maintenance-mode-for-wp/ns-maintenance-mode.php 92% from 13 tests
"NS Maintenance Mode for WP" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ns-maintenance-mode-for-wp.php" instead of "ns-maintenance-mode.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
Good job! No executable or dangerous file extensions detected2,698 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 146 | 220 | 1,308 |
CSS | 9 | 173 | 76 | 1,306 |
JavaScript | 3 | 16 | 6 | 84 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 26.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 73.68% |
Functions | 32 | |
▷ Named functions | 22 | 68.75% |
▷ Anonymous functions | 10 | 31.25% |
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
5 PNG files occupy 1.94MB with 0.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot2.PNG | 1,932.76KB | 1,008.99KB | ▼ 47.80% |
ns-admin-options/img/ns_banner_membership-500.png | 24.95KB | 26.27KB | 0.00% |
screenshot-1.PNG | 24.26KB | 11.79KB | ▼ 51.42% |
assets/img/backend-sidebar-icon.png | 1.48KB | 0.54KB | ▼ 63.47% |
ns-admin-options/img/backend-sidebar-icon.png | 1.48KB | 0.54KB | ▼ 63.47% |