Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲3.70ms] Passed 4 tests
A check of server-side resources used by Logs Display
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.86 ▲1.05 |
Dashboard /wp-admin | 3.43 ▲0.13 | 53.24 ▲3.90 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 51.28 ▲6.65 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 101.15 ▲8.00 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 41.33 ▲3.19 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
slwsu_logs_display_delete_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
slwsu_logs_display_grouper |
theysaidso_admin_options |
slwsu_logs_display_show_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Logs Display
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 13.18 ▼1.17 | 2.20 ▲0.39 | 42.15 ▼2.58 |
Dashboard /wp-admin | 2,296 ▲92 | 5.83 ▲0.94 | 102.08 ▼10.27 | 44.12 ▲0.70 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▼0.05 | 35.87 ▲0.13 | 39.27 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,563 ▲18 | 23.16 ▼0.05 | 677.97 ▼14.49 | 81.09 ▲29.59 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.21 ▼0.06 | 99.42 ▼14.79 | 42.51 ▼7.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: logs, logs display, php logs, php
logs-display/logs-display.php 92% from 13 tests
The main file in "Logs Display" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin729 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 149 | 193 | 588 |
PO File | 1 | 53 | 53 | 141 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 47 | |
▷ Static methods | 12 | 25.53% |
▷ Public methods | 43 | 91.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.51% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected