Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.53ms] Passed 4 tests
Analyzing server-side resources used by Simple Security
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.57 ▼38.14 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.79 ▼47.23 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.24 ▼41.19 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.90 ▼95.55 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.38 ▼29.19 |
Simple Security /wp-admin/options-general.php?page=simple-security-settings | 2.05 | 6.09 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_simple_security_access_log |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
simple-security-settings |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Security
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.21 ▼1.55 | 1.61 ▼0.54 | 37.04 ▼9.34 |
Dashboard /wp-admin | 2,210 ▲25 | 5.81 ▲0.92 | 96.84 ▼17.47 | 38.77 ▼5.99 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.05 | 41.15 ▼0.24 | 35.40 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.21 ▼0.28 | 681.01 ▼5.63 | 52.16 ▼18.70 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.17 ▼0.07 | 95.85 ▼6.01 | 41.09 ▼3.73 |
Simple Security /wp-admin/options-general.php?page=simple-security-settings | 1,826 | 14.53 | 390.81 | 42.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- The uninstall procedure failed, leaving 1 table in the database
- wp_simple_security_access_log
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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 errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=simple-security-settings
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-security-settings
- > Notice in wp-content/plugins/simple-security/simple-security-plugin.php+219
Undefined index: basic_settings
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-security-settings
- > Notice in wp-content/plugins/simple-security/simple-security-plugin.php+219
Trying to access array offset on value of type null
SRP 50% 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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-security/simple-security-access-log-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-security/simple-security-access-log-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/simple-security/simple-security-access-log-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-security/simple-security-loader.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: security, admin
simple-security/simple-security-loader.php 92% from 13 tests
The principal PHP file in "Simple Security" v. 1.1.6 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-security.php" instead of "simple-security-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,454 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 959 | 397 | 1,454 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 77 | 85.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 14.44% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin