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
Installer ran successfully
Server metrics [RAM: ▼0.12MB] [CPU: ▼8.38ms] Passed 4 tests
A check of server-side resources used by WP Simple Maintenance
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 17.25 ▼24.25 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.83 ▼3.67 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.20 ▼5.65 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.64 ▲0.05 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.38 ▲0.20 |
WP Simple Maintenance /wp-admin/options-general.php?page=wpsm_options | 3.27 | 27.09 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Simple Maintenance
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲164 | 15.37 ▲1.00 | 16.67 ▲14.62 | 35.90 ▼8.54 |
Dashboard /wp-admin | 2,210 ▲22 | 4.89 ▼0.00 | 113.43 ▼2.31 | 42.46 ▼3.94 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.07 | 35.82 ▲0.52 | 32.22 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.02 ▲5.45 | 640.56 ▼34.30 | 71.43 ▲17.27 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▼0.00 | 97.63 ▲1.64 | 42.34 ▲1.01 |
WP Simple Maintenance /wp-admin/options-general.php?page=wpsm_options | 904 | 2.23 | 35.38 | 29.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpsm_options
- > Notice in wp-content/plugins/wpsimple-maintenance/admin/wp-maintenance-admin.php+276
Undefined index: wpsm-active-status
- > GET request to /wp-admin/options-general.php?page=wpsm_options
- > Notice in wp-content/plugins/wpsimple-maintenance/admin/wp-maintenance-admin.php+401
Undefined index: wpsm-page-title
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpsm_options
- > Notice in wp-content/plugins/wpsimple-maintenance/admin/wp-maintenance-admin.php+291
Undefined index: wpsm-user-roles
- > GET request to /wp-admin/options-general.php?page=wpsm_options
- > Notice in wp-content/plugins/wpsimple-maintenance/admin/wp-maintenance-admin.php+303
Undefined index: wpsm-exclude-page
- > GET request to /wp-admin/options-general.php?page=wpsm_options
- > Notice in wp-content/plugins/wpsimple-maintenance/admin/wp-maintenance-admin.php+314
Undefined index: wpsm-google-analytics
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpsimple-maintenance/wp-maintenance.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpsimple-maintenance/templates/template-1.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/wpsimple-maintenance/admin/admin-settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wpsimple-maintenance/wp-maintenance.php 92% from 13 tests
The principal PHP file in "WP Simple Maintenance" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpsimple-maintenance.php" instead of "wp-maintenance.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
Success! There were no dangerous files found in this plugin11,848 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 114 | 48 | 7,469 |
JavaScript | 6 | 278 | 271 | 2,692 |
SVG | 2 | 0 | 0 | 928 |
PHP | 6 | 169 | 198 | 759 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin