Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.54MB] [CPU: ▼48.23ms] Passed 4 tests
Server-side resources used by Error Log Viewer By WP Guru
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼1.01 | 9.79 ▼31.27 |
Dashboard /wp-admin | 2.48 ▼0.83 | 15.03 ▼36.20 |
Posts /wp-admin/edit.php | 2.48 ▼0.89 | 17.52 ▼31.62 |
Add New Post /wp-admin/post-new.php | 2.48 ▼3.42 | 13.36 ▼93.82 |
Media Library /wp-admin/upload.php | 2.48 ▼0.76 | 15.18 ▼24.74 |
Error Log Overview /wp-admin/admin.php?page=error-log-viewer-wp | 2.48 | 13.88 |
Error Log List /wp-admin/admin.php?page=elvwp-list | 2.48 | 14.26 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- You have illegally modified 1 file (4.33KB) outside of "wp-content/plugins/error-log-viewer-wp/" and "wp-content/uploads/"
- (modified) wp-config.php
Filesystem: 21 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_elvwp_error_logs |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Error Log Viewer By WP Guru: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲44 | 14.03 ▼0.32 | 1.61 ▼1.46 | 38.22 ▼8.89 |
Dashboard /wp-admin | 2,233 ▲53 | 5.54 ▼0.11 | 91.13 ▼2.12 | 41.51 ▼0.18 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 2.12 ▲0.14 | 34.22 ▼5.20 | 33.02 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.02 ▼0.07 | 599.49 ▼62.29 | 54.86 ▼1.90 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.17 ▲0.06 | 97.98 ▼15.53 | 45.89 ▼5.27 |
Error Log Overview /wp-admin/admin.php?page=error-log-viewer-wp | 922 | 2.15 | 30.50 | 29.38 |
Error Log List /wp-admin/admin.php?page=elvwp-list | 966 | 2.31 | 46.49 | 30.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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
Almost there, just fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=elvwp-list
- > POST request to /wp-admin/admin-ajax.php?action=elvwp_datatable_loglist
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=error-log-viewer-wp
- > Notice in wp-content/plugins/error-log-viewer-wp/includes/error-log-viewer.php+45
Undefined index: date
- > GET request to /wp-admin/admin.php?page=error-log-viewer-wp
- > Notice in wp-content/plugins/error-log-viewer-wp/includes/error-log-viewer.php+45
Undefined index: type
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/error-log-viewer-wp/includes/deactivation-form.php:8
- > PHP Fatal error
Uncaught Error: Class 'Error_Log_Viewer_WP' not found in wp-content/plugins/error-log-viewer-wp/includes/error-log-viewer.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/error-log-viewer-wp/includes/error-log-list-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: log report, admin, debug tool, error reporting, error log
error-log-viewer-wp/error-log-viewer-wp.php 92% from 13 tests
The entry point to "Error Log Viewer By WP Guru" version 1.0.1.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)
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
No dangerous file extensions were detected2,613 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 427 | 560 | 1,498 |
CSS | 3 | 6 | 27 | 583 |
JavaScript | 3 | 9 | 24 | 531 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 101.50 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 32 | 82.05% |
▷ Protected methods | 4 | 10.26% |
▷ Private methods | 3 | 7.69% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |