Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼7.91ms] Passed 4 tests
This is a short check of server-side resources used by WP Security Log
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 39.28 ▲2.86 |
Dashboard /wp-admin | 3.72 ▲0.37 | 46.01 ▼17.20 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 46.18 ▲0.41 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 79.21 ▼16.35 |
Media Library /wp-admin/upload.php | 3.58 ▲0.34 | 35.57 ▲1.51 |
Error 404 Log 0 /wp-admin/admin.php?page=wp-security-log/error_404_log | 3.52 | 32.64 |
Login Attack Log0 /wp-admin/admin.php?page=wp-security-log/login_attack_log | 3.52 | 34.32 |
Options /wp-admin/admin.php?page=wp-security-log | 3.55 | 32.07 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
wpseclog-error-404-check-search |
wpseclog-login-attack-check |
wpseclog-error-404-check-pagespeed |
wpseclog_ip_address_list |
widget_theysaidso_widget |
can_compress_scripts |
wpseclog-error-404-check |
... |
Browser metrics Passed 4 tests
WP Security Log: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.29 ▼1.46 | 1.67 ▲0.08 | 40.00 ▼3.24 |
Dashboard /wp-admin | 2,245 ▲60 | 5.87 ▲0.78 | 109.55 ▲5.75 | 72.14 ▲30.34 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.00 ▼0.01 | 33.13 ▼7.55 | 31.41 ▼4.23 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 23.08 ▼0.14 | 701.83 ▲34.78 | 52.54 ▲1.21 |
Media Library /wp-admin/upload.php | 1,427 ▲45 | 4.20 ▲0.02 | 100.57 ▲1.78 | 46.65 ▲3.67 |
Error 404 Log 0 /wp-admin/admin.php?page=wp-security-log/error_404_log | 1,378 | 1.97 | 36.09 | 34.81 |
Login Attack Log0 /wp-admin/admin.php?page=wp-security-log/login_attack_log | 1,440 | 1.98 | 33.12 | 33.12 |
Options /wp-admin/admin.php?page=wp-security-log | 1,233 | 2.07 | 32.27 | 34.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wpseclog_adnin_deactivate' not found or invalid function name
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-security-log/login_attack_log
- > Warning in wp-content/plugins/wp-security-log/includes/data-summary.class.php+77
uksort() expects parameter 1 to be array, null given
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-security-log/login_attack_log
- > Warning in wp-content/plugins/wp-security-log/includes/data-summary.class.php+81
ksort() expects parameter 1 to be array, null given
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-security-log/login_attack_log
- > Warning in wp-content/plugins/wp-security-log/includes/data-summary.class.php+113
Invalid argument supplied for foreach()
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Options screen), #2 (Error 404 display screen), #3 (Error 404 summary screen), #4 (Login Attack display screen), #5 (Login Attack summary screen)
wp-security-log/wp-security-log.php 92% from 13 tests
The main file in "WP Security Log" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 184 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,276 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 304 | 503 | 1,873 |
JavaScript | 6 | 192 | 245 | 1,346 |
CSS | 4 | 7 | 14 | 57 |
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.34 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 65 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.63MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 101.15KB | 49.41KB | ▼ 51.15% |
screenshot-2.png | 131.74KB | 80.85KB | ▼ 38.63% |
images/log-16.png | 0.62KB | 0.84KB | 0.00% |
images/error-32.png | 2.16KB | 1.58KB | ▼ 26.85% |
images/warning-32.png | 1.57KB | 1.41KB | ▼ 10.42% |