Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.54ms] Passed 4 tests
Server-side resources used by error_log File Viewer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.76 ▼1.11 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.56 ▼12.32 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.90 ▼2.94 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.70 ▼21.78 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.08 ▲4.00 |
error_log /wp-admin/tools.php?page=error_log | 3.22 | 32.57 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for error_log File Viewer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲122 | 14.34 ▼0.24 | 1.78 ▼0.17 | 40.32 ▼5.73 |
Dashboard /wp-admin | 2,286 ▲109 | 5.70 ▲0.09 | 90.49 ▼1.97 | 43.68 ▲3.86 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.02 ▲0.03 | 35.69 ▼3.68 | 36.68 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,529 ▼25 | 17.47 ▼0.76 | 699.68 ▲36.81 | 53.38 ▼4.06 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.17 ▼0.14 | 114.43 ▲6.82 | 51.54 ▲6.20 |
error_log /wp-admin/tools.php?page=error_log | 1,032 | 2.04 | 30.03 | 32.68 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/tools.php?page=error_log
- > Warning in wp-content/plugins/error-log-file-viewer/includes/settings-page.php+48
filesize(): stat failed for error_log
- > GET request to /wp-admin/tools.php?page=error_log
- > Warning in wp-content/plugins/error-log-file-viewer/includes/settings-page.php+60
file_get_contents(error_log): failed to open stream: No such file or directory
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=error_log
- > Notice in wp-content/plugins/error-log-file-viewer/includes/settings-page.php+170
Undefined variable: selected_error_type
SRP 50% 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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/error-log-file-viewer/error_log-file-viewer.php:12
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in error-log-file-viewer/assets to your readme.txt
error-log-file-viewer/error_log-file-viewer.php 92% from 13 tests
This is the main PHP file of "error_log File Viewer" version 1.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("error-log-file-viewer.php" instead of "error_log-file-viewer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin880 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 14 | 2 | 491 |
PHP | 3 | 84 | 70 | 340 |
JavaScript | 3 | 3 | 4 | 49 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 7 | |
▷ Named functions | 7 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/pluginsclub_logo_black.png | 22.36KB | 10.65KB | ▼ 52.36% |