Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲1.77ms] Passed 4 tests
Analyzing server-side resources used by NutsForPress Maintenance Mode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 35.50 ▼4.80 |
Dashboard /wp-admin | 3.46 ▲0.15 | 47.36 ▼0.10 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.52 ▲3.50 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 95.00 ▲12.74 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.96 ▲8.48 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 3.34 | 33.46 |
Maintenance Mode /wp-admin/admin.php?page=nfpmnm-settings | 3.40 | 37.10 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by NutsForPress Maintenance Mode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 13.33 ▼1.06 | 1.57 ▼0.10 | 42.12 ▲0.41 |
Dashboard /wp-admin | 2,245 ▲60 | 4.96 ▼0.88 | 113.69 ▲15.14 | 41.19 ▼0.22 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.07 ▲0.08 | 35.86 ▲0.05 | 34.05 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 23.20 ▲0.11 | 673.53 ▲79.75 | 55.58 ▲10.62 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.33 ▲0.14 | 96.86 ▼0.99 | 39.70 ▼3.06 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 812 | 2.10 | 24.35 | 25.93 |
Maintenance Mode /wp-admin/admin.php?page=nfpmnm-settings | 930 | 2.21 | 27.06 | 28.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/nutsforpress-maintenance-mode/admin/includes/nfpmnm-add-user-fields.php
- > /wp-content/plugins/nutsforpress-maintenance-mode/root/nfproot-styles-and-scripts.php
- > /wp-content/plugins/nutsforpress-maintenance-mode/admin/includes/nfpmnm-force-logout.php
- > /wp-content/plugins/nutsforpress-maintenance-mode/includes/nfpmnm-plugin-uninstall.php
- > /wp-content/plugins/nutsforpress-maintenance-mode/includes/nfpmnm-plugin-activate.php
- > /wp-content/plugins/nutsforpress-maintenance-mode/public/includes/nfpmnm-restrict-rest.php
- > /wp-content/plugins/nutsforpress-maintenance-mode/admin/includes/nfpmnm-save-user-fields.php
- > /wp-content/plugins/nutsforpress-maintenance-mode/root/nfproot-saved-settings.php
- > /wp-content/plugins/nutsforpress-maintenance-mode/public/includes/nfpmnm-redirect.php
- > /wp-content/plugins/nutsforpress-maintenance-mode/admin/includes/nfpmnm-check-after-login.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires php: Version format is invalid
nutsforpress-maintenance-mode/nuts-for-press-maintenance-mode.php 85% from 13 tests
The main PHP file in "NutsForPress Maintenance Mode" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("nutsforpress-maintenance-mode.php" instead of "nuts-for-press-maintenance-mode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,593 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 992 | 213 | 1,345 |
JavaScript | 2 | 97 | 50 | 136 |
CSS | 1 | 29 | 1 | 112 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
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 | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG files were detected