Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.08MB] [CPU: ▼318.95ms] Passed 4 tests
This is a short check of server-side resources used by WP Site Protect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.23 | 53.19 ▲1.93 |
Dashboard /wp-admin | 3.25 ▼0.16 | 19.21 ▼13.62 |
Posts /wp-admin/edit.php | 3.25 ▼0.39 | 20.82 ▼17.18 |
Add New Post /wp-admin/post-new.php | 3.25 ▼3.72 | 19.11 ▼1,242.99 |
Media Library /wp-admin/upload.php | 3.25 ▼0.04 | 21.39 ▼1.99 |
Add New /wp-admin/post-new.php?post_type=password | 3.25 | 21.02 |
All Passwords /wp-admin/edit.php?post_type=password | 3.25 | 19.26 |
Server storage [IO: ▲2.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 138 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Site Protect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,380 ▲636 | 23.29 ▲7.32 | 6.84 ▲1.03 | 2.19 ▼0.00 |
Dashboard /wp-admin | 3,521 ▲660 | 12.41 ▲6.32 | 205.57 ▲77.50 | 160.95 ▲7.29 |
Posts /wp-admin/edit.php | 3,568 ▲874 | 9.41 ▲6.18 | 153.10 ▲89.88 | 136.90 ▼4.64 |
Add New Post /wp-admin/post-new.php | 2,444 ▲783 | 20.23 ▲4.24 | 500.35 ▲89.34 | 160.26 ▲3.67 |
Media Library /wp-admin/upload.php | 2,345 ▲647 | 9.85 ▲4.32 | 176.91 ▲43.56 | 185.95 ▼0.84 |
Add New /wp-admin/post-new.php?post_type=password | 2,804 | 10.11 | 183.16 | 161.25 |
Settings /wp-admin/crbn-settings.php | 26 | 0.94 | 0.03 | 20.02 |
All Passwords /wp-admin/edit.php?post_type=password | 2,264 | 9.29 | 159.48 | 126.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5768
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=password
- > User notice in wp-includes/functions.php+5768
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% 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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/tests/bootstrap.php
- > /wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 74× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/core/Container/Theme_Options_Container.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/tests/unit-tests/Container/ContainerInitializationTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/tests/unit-tests/Field/FieldGetSetId.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/tests/unit-tests/Field/FieldInitializationTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/core/Datastore/Theme_Options_Datastore.php:10
- > PHP Notice
Undefined variable: hideErrorsCookieName in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/core/Datastore/Term_Meta_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/core/Datastore/User_Meta_Datastore.php:10
- > PHP Notice
Undefined variable: plural in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 40
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wp-site-protect/vendor/htmlburger/carbon-fields/core/Field/Map_Field.php:10
- > 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/crbn-settings.php
- > Network (severe)
wp-admin/crbn-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: protection, password, multiple, protect, site
wp-site-protect/wp-site-protect.php Passed 13 tests
The main PHP file in "WP Site Protect" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Protects your WordPress site with unique passwords
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
There were no executable files found in this plugin12,229 lines of code in 122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 1,787 | 3,625 | 5,986 |
JavaScript | 9 | 1,081 | 817 | 4,303 |
Markdown | 3 | 140 | 0 | 580 |
PO File | 3 | 207 | 217 | 538 |
CSS | 4 | 106 | 70 | 473 |
JSON | 3 | 1 | 0 | 210 |
Bourne Shell | 1 | 20 | 20 | 64 |
YAML | 2 | 10 | 0 | 50 |
XML | 2 | 3 | 2 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 73 | |
▷ Abstract classes | 7 | 9.59% |
▷ Concrete classes | 66 | 90.41% |
▷ Final classes | 0 | 0.00% |
Methods | 618 | |
▷ Static methods | 63 | 10.19% |
▷ Public methods | 602 | 97.41% |
▷ Protected methods | 5 | 0.81% |
▷ Private methods | 11 | 1.78% |
Functions | 15 | |
▷ Named functions | 11 | 73.33% |
▷ Anonymous functions | 4 | 26.67% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.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
4 PNG files occupy 1.48MB with 1.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 403.88KB | 116.38KB | ▼ 71.18% |
screenshot-3.png | 215.37KB | 60.11KB | ▼ 72.09% |
screenshot-2.png | 448.54KB | 130.73KB | ▼ 70.85% |
screenshot-4.png | 448.69KB | 133.37KB | ▼ 70.28% |