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.05MB] [CPU: ▼5.41ms] Passed 4 tests
Analyzing server-side resources used by Dashboard Log Monitor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.05 | 38.72 ▼5.74 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.22 ▼0.75 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 49.32 ▲3.22 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.18 ▼16.81 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.05 ▲1.65 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
dashboard_widget_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Dashboard Log Monitor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲81 | 13.22 ▼1.15 | 4.68 ▲2.75 | 39.17 ▲0.70 |
Dashboard /wp-admin | 2,241 ▲53 | 5.81 ▲0.92 | 104.30 ▼1.65 | 44.25 ▲1.47 |
Posts /wp-admin/edit.php | 2,094 ▲8 | 1.97 ▼0.08 | 48.82 ▲11.91 | 42.34 ▲6.01 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.58 ▲0.47 | 640.44 ▲36.73 | 61.69 ▲12.53 |
Media Library /wp-admin/upload.php | 1,384 ▼4 | 4.19 ▼0.14 | 99.96 ▲6.20 | 42.07 ▲0.61 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- dashboard_widget_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/dashboard-log-monitor/log-parser/tests/bootstrap.php
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dashboard-log-monitor/log-parser/tests/Kassner/Tests/LogParser/Apache/RefererTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Kassner\\Tests\\LogParser\\Provider\\IpAddress' not found in wp-content/plugins/dashboard-log-monitor/log-parser/tests/Kassner/Tests/LogParser/Format/LocalIpAddressTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dashboard-log-monitor/log-parser/tests/Kassner/Tests/LogParser/Apache/CommomTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dashboard-log-monitor/log-parser/tests/Kassner/Tests/LogParser/Provider/HostName.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dashboard-log-monitor/log-parser/tests/Kassner/Tests/LogParser/Apache/AgentTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dashboard-log-monitor/widget.php:8
- > PHP Fatal error
Uncaught Error: Class 'Kassner\\Tests\\LogParser\\Provider\\PositiveInteger' not found in wp-content/plugins/dashboard-log-monitor/log-parser/tests/Kassner/Tests/LogParser/Format/BytesReceivedTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Kassner\\Tests\\LogParser\\Provider\\IpAddress' not found in wp-content/plugins/dashboard-log-monitor/log-parser/tests/Kassner/Tests/LogParser/Format/RemoteIpAddressTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Kassner\\Tests\\LogParser\\Provider\\PositiveInteger' not found in wp-content/plugins/dashboard-log-monitor/log-parser/tests/Kassner/Tests/LogParser/Format/BytesSentTest.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-log-monitor/dashboard-log-monitor.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: log, access log, admin, dashboard, seravo
dashboard-log-monitor/dashboard-log-monitor.php Passed 13 tests
The main PHP script in "Dashboard Log Monitor" version 1.0.4 is automatically included on every request by WordPress
67 characters long description:
Take a sneak peek on your access logs from the wordpress dashboard.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,118 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 213 | 234 | 922 |
Markdown | 2 | 22 | 0 | 87 |
JSON | 2 | 0 | 0 | 45 |
CSS | 1 | 7 | 3 | 44 |
YAML | 1 | 0 | 0 | 13 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 10 | 14.49% |
▷ Public methods | 50 | 72.46% |
▷ Protected methods | 18 | 26.09% |
▷ Private methods | 1 | 1.45% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin