Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▲8.14ms] Passed 4 tests
A check of server-side resources used by View WP Error Log
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 54.95 ▲13.90 |
Dashboard /wp-admin | 3.58 ▲0.28 | 79.94 ▲26.18 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 55.08 ▲4.64 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 105.80 ▲14.75 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.89 ▼0.72 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/view-wp-error-log/" and "wp-content/uploads/"
- (new file) error_log
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
view_wp_error_log_no_lines |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by View WP Error Log
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲27 | 13.39 ▲0.10 | 2.00 ▼0.14 | 47.78 ▲3.48 |
Dashboard /wp-admin | 2,219 ▲13 | 5.83 ▼0.03 | 99.89 ▼10.57 | 41.16 ▼1.27 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.00 ▼0.01 | 36.83 ▲1.71 | 33.05 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 23.26 ▲0.15 | 611.93 ▼130.86 | 49.57 ▼7.22 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.22 ▲0.02 | 97.78 ▼3.13 | 41.00 ▼3.79 |
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 did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- view_wp_error_log_no_lines
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/view-wp-error-log/view-wp-error-log.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
view-wp-error-log/view-wp-error-log.php Passed 13 tests
The main PHP file in "View WP Error Log" ver. 3.1 adds more information about the plugin and also serves as the entry point for this plugin
25 characters long description:
Simply view the error log
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 plugin1,102 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 154 | 121 | 1,102 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 72.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 2 | 66.67% |
Methods | 48 | |
▷ Static methods | 7 | 14.58% |
▷ Public methods | 48 | 100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rate-me.png | 2.62KB | 1.53KB | ▼ 41.67% |
images/trash.png | 1.52KB | 0.70KB | ▼ 53.85% |
images/edit.png | 1.69KB | 0.59KB | ▼ 65.22% |