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
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-security-enhancer/wp_security_enhancer.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; WPSecurityEnhancer has a deprecated constructor
Server metrics [RAM: ▲19.04MB] [CPU: ▼43.07ms] 75% from 4 tests
Server-side resources used by WP Security Enhancer
Please have a look at the following items
- Extra RAM: Extra memory usage should kept under 5MB (currently 19.04MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 23.03 ▲19.56 | 17.91 ▼27.60 |
Dashboard /wp-admin | 23.05 ▲19.74 | 21.29 ▼30.29 |
Posts /wp-admin/edit.php | 23.05 ▲19.69 | 19.88 ▼30.41 |
Add New Post /wp-admin/post-new.php | 23.05 ▲17.16 | 16.40 ▼83.99 |
Media Library /wp-admin/upload.php | 23.05 ▲19.82 | 19.68 ▼19.02 |
Server storage [IO: ▲0.01MB] [DB: ▲7.38MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
WPSecurityEnhancer-filelist |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Security Enhancer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.14 | 1.68 ▼0.67 | 42.47 ▼2.64 |
Dashboard /wp-admin | 2,195 ▲21 | 5.48 ▼0.19 | 87.25 ▼10.97 | 38.65 ▼5.42 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▼0.03 | 35.69 ▼2.00 | 33.52 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼14 | 23.52 ▲5.37 | 687.91 ▲59.64 | 57.10 ▼28.23 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.20 ▲0.02 | 95.79 ▼6.75 | 40.58 ▼5.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲7.38MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-security-enhancer/wp_security_enhancer.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; WPSecurityEnhancer has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- WPSecurityEnhancer-filelist
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-security-enhancer/wp_security_enhancer.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
1 plugin tags: security
wp-security-enhancer/wp_security_enhancer.php 92% from 13 tests
The entry point to "WP Security Enhancer" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-security-enhancer.php" instead of "wp_security_enhancer.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 plugin170 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 10 | 170 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin