Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.96ms] Passed 4 tests
Analyzing server-side resources used by WP Logs Book
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 39.13 ▲18.39 |
Dashboard /wp-admin | 3.07 ▲0.01 | 45.29 ▼2.27 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.15 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 91.28 ▼558.92 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.87 ▼1.70 |
Login Attack Log /wp-admin/admin.php?page=wp-logs-book/login_attack_log | 2.98 | 23.00 |
Options /wp-admin/admin.php?page=wp-logs-book | 2.98 | 27.34 |
Error 404 Log /wp-admin/admin.php?page=wp-logs-book/404_log | 2.98 | 22.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Logs Book
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲136 | 16.04 ▲0.38 | 13.84 ▲3.97 | 49.92 ▲1.33 |
Dashboard /wp-admin | 3,012 ▲81 | 5.91 ▼0.07 | 134.30 ▼14.77 | 97.14 ▼20.74 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.73 ▲0.02 | 63.75 ▼4.11 | 84.45 ▼4.99 |
Add New Post /wp-admin/post-new.php | 1,697 ▲27 | 18.85 ▼0.31 | 382.65 ▼1.56 | 113.23 ▲3.52 |
Media Library /wp-admin/upload.php | 1,861 ▲54 | 5.05 ▲0.03 | 145.31 ▲1.91 | 119.72 ▲0.07 |
Login Attack Log /wp-admin/admin.php?page=wp-logs-book/login_attack_log | 1,131 | 2.10 | 55.03 | 63.80 |
Options /wp-admin/admin.php?page=wp-logs-book | 1,104 | 2.09 | 55.13 | 75.27 |
Error 404 Log /wp-admin/admin.php?page=wp-logs-book/404_log | 1,124 | 2.09 | 56.48 | 69.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-logs-book/includes/404-log.php on line 102
- > PHP Notice
Undefined variable: wplb_services in wp-content/plugins/wp-logs-book/includes/404-log.php on line 102
- > PHP Notice
Undefined variable: wplb_services in wp-content/plugins/wp-logs-book/includes/login-attack-log.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-logs-book/wp-logs-book.php:33
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-logs-book/includes/login-attack-log.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
8 plugin tags: tracking, hacking attempt, error 404, developer, aanalytics...
wp-logs-book/wp-logs-book.php 92% from 13 tests
The main PHP file in "WP Logs Book" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 361 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected231 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 38 | 29 | 231 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected