Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼167.40ms] Passed 4 tests
An overview of server-side resources used by Log Viewer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.90 ▲12.91 |
Dashboard /wp-admin | 3.12 ▲0.07 | 43.02 ▼8.38 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 46.19 ▼6.70 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 90.42 ▼649.36 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 33.04 ▼5.14 |
Log Viewer /wp-admin/tools.php?page=log_viewer_files_view | 3.08 | 30.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
1_log-viewer_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Log Viewer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲103 | 15.79 ▲0.28 | 8.11 ▼0.72 | 47.24 ▼2.95 |
Dashboard /wp-admin | 2,972 ▲38 | 5.88 ▼0.31 | 144.52 ▼17.86 | 114.14 ▲1.25 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 71.07 ▼4.72 | 88.67 ▼8.53 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.68 ▼0.07 | 373.64 ▼22.27 | 110.92 ▲4.77 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.02 ▼0.01 | 149.93 ▼28.35 | 126.34 ▼11.09 |
Log Viewer /wp-admin/tools.php?page=log_viewer_files_view | 1,030 | 2.05 | 54.16 | 65.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- 1_log-viewer_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/log-viewer/views/debug-bar-panel.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: showEditSection in wp-content/plugins/log-viewer/views/debug-bar-panel.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/log-viewer/admin/views/files-view.php:18
- > PHP Fatal error
Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/log-viewer/includes/class-dbpanel.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: advanced, admin, debug, log, development
log-viewer/log-viewer.php Passed 13 tests
Analyzing the main PHP file in "Log Viewer" version 14.05.04
79 characters long description:
This plugin provides an easy way to view log files directly in the admin panel.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin593 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 198 | 499 | 593 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 13 | 40.62% |
▷ Public methods | 26 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.75% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin