78% error-log-viewer

Code Review | Error Log Viewer by BestWebSoft

WordPress plugin Error Log Viewer by BestWebSoft scored78%from 54 tests.

About plugin

  • Plugin page: error-log-viewer
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Sep 8, 2015
  • Latest release: May 23, 2023
  • Number of updates: 32
  • Update frequency: every 88.0 days
  • Top authors: bestwebsoft (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

4,000+ active /46,826 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.38ms] Passed 4 tests

This is a short check of server-side resources used by Error Log Viewer by BestWebSoft
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.33 ▼4.11
Dashboard /wp-admin3.37 ▲0.0346.44 ▼12.68
Posts /wp-admin/edit.php3.49 ▲0.1350.48 ▲4.23
Add New Post /wp-admin/post-new.php5.97 ▲0.0986.73 ▼8.96
Media Library /wp-admin/upload.php3.30 ▲0.0737.82 ▲5.61

Server storage [IO: ▲5.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 121 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
bstwbsftwppdtplgns_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Error Log Viewer by BestWebSoft
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.41 ▼1.181.64 ▼0.0240.60 ▼1.67
Dashboard /wp-admin2,243 ▲515.89 ▲0.91110.79 ▲2.7739.93 ▼5.23
Posts /wp-admin/edit.php2,129 ▲402.05 ▲0.0540.12 ▲3.3835.21 ▲1.93
Add New Post /wp-admin/post-new.php1,558 ▲1523.28 ▲0.19651.28 ▲54.6758.83 ▲8.68
Media Library /wp-admin/upload.php1,428 ▲404.23 ▼0.0097.84 ▼0.9044.09 ▲1.92
Settings /wp-admin/rrrlgvwr.php260.440.1014.12
BWS Panel /wp-admin/rrrlgvwr.php?page=rrrlgvwr-bws-panel260.440.106.18
Log Monitor /wp-admin/rrrlgvwr-monitor.php260.440.066.26

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/error-log-viewer/bws_menu/class-bws-settings.php:1452
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/error-log-viewer/bws_menu/product_list.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/error-log-viewer/error-log-viewer.php:1305
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/error-log-viewer/error-log-viewer.php on line 1014
    • > PHP Fatal error
      Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/error-log-viewer/includes/class-rrrlgvwr-settings.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/rrrlgvwr.php
    • > Network (severe)
    wp-admin/rrrlgvwr.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/rrrlgvwr.php?page=rrrlgvwr-bws-panel
    • > Network (severe)
    wp-admin/rrrlgvwr.php?page=rrrlgvwr-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/rrrlgvwr-monitor.php
    • > Network (severe)
    wp-admin/rrrlgvwr-monitor.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: Please add images for these screenshots: #1 (Settings page for create log file.), #2 (Settings page for selecting viewed file.), #3 (Settings page for sending e-mail.), #4 (PHP error log monitor.), #5 (WP error log monitor.)
The official readme.txt is a good inspiration

error-log-viewer/error-log-viewer.php Passed 13 tests

The entry point to "Error Log Viewer by BestWebSoft" version 1.1.2 is a PHP file that has certain tags in its header comment area
89 characters long description:
Get latest error log messages to diagnose website problems. Define and fix issues faster.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected19,829 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PO File103,5315,0778,136
CSS101892775,548
PHP95247735,477
JavaScript730110518
SVG400150

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity71.50
▷ Minimum class complexity4.00
▷ Maximum class complexity210.00
Average method complexity9.29
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods2882.35%
▷ Protected methods00.00%
▷ Private methods617.65%
Functions80
▷ Named functions80100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
64 PNG files occupy 3.36MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
bws_menu/images/tooltip_icons.png0.81KB0.82KB0.00%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_75_dadada_1x400.png0.16KB0.16KB0.00%