Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼292.83ms] Passed 4 tests
Analyzing 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.92 ▲0.40 | 85.42 ▲23.38 |
Dashboard /wp-admin | 3.77 ▲0.36 | 44.46 ▲4.81 |
Posts /wp-admin/edit.php | 3.99 ▲0.35 | 47.63 ▲3.50 |
Add New Post /wp-admin/post-new.php | 7.29 ▲0.32 | 108.20 ▼1,182.42 |
Media Library /wp-admin/upload.php | 3.72 ▲0.42 | 29.86 ▲2.81 |
Options /wp-admin/admin.php?page=wp-security-log | 3.62 | 30.26 |
Error 404 Log 0 /wp-admin/admin.php?page=wp-security-log/error_404_log | 3.60 | 30.98 |
Login Attack Log0 /wp-admin/admin.php?page=wp-security-log/login_attack_log | 3.60 | 25.78 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wpseclog-login-attack-check |
wpseclog-error-404-check |
wpseclog_ip_address_list |
wpseclog_error_404_log |
wpseclog-error-404-check-search |
wpseclog_login_attack_log |
wpseclog-error-404-check-pagespeed |
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 / | 3,810 ▲88 | 15.90 ▲0.63 | 7.10 ▲0.27 | 2.15 ▼0.04 |
Dashboard /wp-admin | 2,933 ▲72 | 5.99 ▼0.20 | 114.71 ▼35.90 | 175.48 ▼3.54 |
Posts /wp-admin/edit.php | 2,737 ▲52 | 3.12 ▼0.11 | 63.59 ▼0.31 | 145.38 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,692 ▼60 | 16.57 ▼4.80 | 407.52 ▼45.00 | 164.15 ▼16.56 |
Media Library /wp-admin/upload.php | 1,742 ▲53 | 5.56 ▲0.06 | 123.92 ▼23.04 | 210.24 ▼23.27 |
Options /wp-admin/admin.php?page=wp-security-log | 1,585 | 3.22 | 92.86 | 141.30 |
Error 404 Log 0 /wp-admin/admin.php?page=wp-security-log/error_404_log | 1,788 | 3.26 | 61.76 | 164.90 |
Login Attack Log0 /wp-admin/admin.php?page=wp-security-log/login_attack_log | 1,844 | 3.14 | 68.21 | 125.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, function 'wpseclog_adnin_deactivate' not found or invalid function name
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #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
"WP Security Log" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- 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 a short overview of programming languages used in this plugin, detecting executable files
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
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.63MB with 0.21MB 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/warning-32.png | 1.57KB | 1.41KB | ▼ 10.42% |
screenshot-3.png | 104.02KB | 45.33KB | ▼ 56.42% |
images/success-32.png | 1.48KB | 1.30KB | ▼ 11.99% |