68% error-log-viewer-wp

Code Review | Error Log Viewer By WP Guru

WordPress plugin Error Log Viewer By WP Guru scored68%from 54 tests.

About plugin

  • Plugin page: error-log-viewer-wp
  • Plugin version: 1.0.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2023
  • Latest release: Feb 2, 2023
  • Number of updates: 8
  • Update frequency: every 0.9 days
  • Top authors: wpguruin (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /864 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.45 ▼1.019.79 ▼31.27
Dashboard /wp-admin2.48 ▼0.8315.03 ▼36.20
Posts /wp-admin/edit.php2.48 ▼0.8917.52 ▼31.62
Add New Post /wp-admin/post-new.php2.48 ▼3.4213.36 ▼93.82
Media Library /wp-admin/upload.php2.48 ▼0.7615.18 ▼24.74
Error Log Overview /wp-admin/admin.php?page=error-log-viewer-wp2.4813.88
Error Log List /wp-admin/admin.php?page=elvwp-list2.4814.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲4414.03 ▼0.321.61 ▼1.4638.22 ▼8.89
Dashboard /wp-admin2,233 ▲535.54 ▼0.1191.13 ▼2.1241.51 ▼0.18
Posts /wp-admin/edit.php2,141 ▲382.12 ▲0.1434.22 ▼5.2033.02 ▼4.44
Add New Post /wp-admin/post-new.php1,556 ▲3023.02 ▼0.07599.49 ▼62.2954.86 ▼1.90
Media Library /wp-admin/upload.php1,435 ▲354.17 ▲0.0697.98 ▼15.5345.89 ▼5.27
Error Log Overview /wp-admin/admin.php?page=error-log-viewer-wp9222.1530.5029.38
Error Log List /wp-admin/admin.php?page=elvwp-list9662.3146.4930.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP74275601,498
CSS3627583
JavaScript3924531
Markdown1001

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 code0.40
Average class complexity101.50
▷ Minimum class complexity46.00
▷ Maximum class complexity157.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods39
▷ Static methods12.56%
▷ Public methods3282.05%
▷ Protected methods410.26%
▷ Private methods37.69%
Functions11
▷ Named functions763.64%
▷ Anonymous functions436.36%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
assets/images/sort_desc.png0.15KB0.25KB0.00%
assets/images/sort_asc.png0.16KB0.25KB0.00%
assets/images/sort_both.png0.20KB0.29KB0.00%