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.08MB] [CPU: ▼0.07ms] Passed 4 tests
A check of server-side resources used by WP Secure Maintenance
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.51 ▼2.90 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.28 ▼1.24 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.58 ▼0.60 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.47 ▲5.41 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 37.39 ▲4.46 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Secure Maintenance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲250 | 14.70 ▲0.29 | 1.93 ▲0.17 | 43.44 ▼2.42 |
Dashboard /wp-admin | 2,354 ▲169 | 6.46 ▲0.54 | 122.16 ▲1.16 | 77.37 ▲30.78 |
Posts /wp-admin/edit.php | 2,280 ▲191 | 3.44 ▲1.46 | 49.98 ▲12.25 | 34.09 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 22.96 ▼0.12 | 581.91 ▼104.80 | 47.47 ▼11.53 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.12 ▼0.13 | 79.97 ▼20.68 | 44.91 ▲1.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-secure-maintainance/wp_secure_maintainance.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-secure-maintainance/inc/wpsp_functions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_settings_sections() in wp-content/plugins/wp-secure-maintainance/inc/wpsp_options.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: maintenance, development, site security, maintenance lock
wp-secure-maintainance/wp_secure_maintainance.php 85% from 13 tests
The principal PHP file in "WP Secure Maintenance" v. 1.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.2")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-secure-maintainance.php" instead of "wp_secure_maintainance.php")
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
No dangerous file extensions were detected524 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 23 | 278 |
CSS | 1 | 15 | 3 | 181 |
JavaScript | 1 | 14 | 4 | 65 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.75 |
▷ 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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/default-logo.png | 6.29KB | 2.90KB | ▼ 53.89% |
img/icon.png | 2.08KB | 1.30KB | ▼ 37.39% |