Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
Server metrics [RAM: ▼1.88MB] [CPU: ▼50.38ms] Passed 4 tests
Analyzing server-side resources used by LockerPress - WordPress Security Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 6.20 ▼31.17 |
Dashboard /wp-admin | 2.13 ▼1.18 | 5.78 ▼40.80 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.14 ▼41.37 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 7.13 ▼88.16 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 6.13 ▼24.54 |
LockerPress /wp-admin/admin.php?page=lockerpress-wordpress-security/core.php | 2.13 | 6.31 |
Custom Login URL /wp-admin/admin.php?page=login_url | 2.13 | 6.66 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by LockerPress - WordPress Security Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲70 | 14.44 ▲0.07 | 1.64 ▼0.67 | 43.33 ▼4.37 |
Dashboard /wp-admin | 2,233 ▲45 | 4.88 ▼0.03 | 110.28 ▲4.05 | 37.44 ▼2.81 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.00 ▲0.01 | 39.63 ▲0.13 | 37.14 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,554 ▲35 | 23.41 ▲0.09 | 633.72 ▼48.59 | 60.62 ▼2.86 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.19 ▲0.02 | 95.01 ▼8.99 | 42.30 ▲0.02 |
LockerPress /wp-admin/admin.php?page=lockerpress-wordpress-security/core.php | 1,008 | 1.98 | 33.51 | 26.99 |
Custom Login URL /wp-admin/admin.php?page=login_url | 874 | 2.25 | 30.25 | 27.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=login_url
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=login_url
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/lockerpress-wordpress-security/core.php+65
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=login_url
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/lockerpress-wordpress-security/core.php+189
unserialize(): Error at offset 0 of 77 bytes
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lockerpress-wordpress-security/views/footer.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/lockerpress-wordpress-security/core.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/lockerpress-wordpress-security/core.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lockerpress-wordpress-security/views/login_url.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/lockerpress-wordpress-security/views/wpsecure_index.php:2
- > 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=lockerpress-wordpress-security/core.php
- > Network (severe)
wp-content/plugins/lockerpress/css/ui-lightness/jquery-ui-1.8.20.custom.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=login_url
- > Network (severe)
wp-content/plugins/lockerpress/images/lockerpress_logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (20 tag instead of maximum 10)
- Screenshots: These screenshots require images: #1 (LockerPress WordPress Security - Main Admin Panel), #2 (LockerPress - Custom Login URL), #3 (LockerPress - Change Admin User), #4 (LockerPress - Set Hack/Ban Settings & Email Notification of Failed Login Attempts), #5 (LockerPress - Enable HTTP Authentication)
lockerpress-wordpress-security/lockerpress.php 85% from 13 tests
"LockerPress - WordPress Security Plugin" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lockerpress-wordpress-security.php" instead of "lockerpress.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 215 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin769 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 43 | 15 | 387 |
CSS | 1 | 33 | 150 | 382 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.25KB | 0.15KB | ▼ 39.62% |
css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.09KB | 0.14KB | 0.00% |
css/ui-lightness/images/ui-icons_ffd27a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |