84% view-wp-error-log

Code Review | View WP Error Log

WordPress plugin View WP Error Log scored 84% from 54 tests.

About plugin

  • Plugin page: view-wp-error-log
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 6.3.1
  • First release: Apr 18, 2013
  • Latest release: Oct 28, 2014
  • Number of updates: 12
  • Update frequency: every 46.4 days
  • Top authors: MMDeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,901 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2254.95 ▲13.90
Dashboard /wp-admin3.58 ▲0.2879.94 ▲26.18
Posts /wp-admin/edit.php3.62 ▲0.2655.08 ▲4.64
Add New Post /wp-admin/post-new.php6.09 ▲0.20105.80 ▲14.75
Media Library /wp-admin/upload.php3.43 ▲0.2036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲2713.39 ▲0.102.00 ▼0.1447.78 ▲3.48
Dashboard /wp-admin2,219 ▲135.83 ▼0.0399.89 ▼10.5741.16 ▼1.27
Posts /wp-admin/edit.php2,105 ▲132.00 ▼0.0136.83 ▲1.7133.05 ▲1.12
Add New Post /wp-admin/post-new.php1,551 ▲1423.26 ▲0.15611.93 ▼130.8649.57 ▼7.22
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.0297.78 ▼3.1341.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

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: ""
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP41541211,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 code0.47
Average class complexity72.00
▷ Minimum class complexity3.00
▷ Maximum class complexity207.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes266.67%
Methods48
▷ Static methods714.58%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/rate-me.png2.62KB1.53KB▼ 41.67%
images/trash.png1.52KB0.70KB▼ 53.85%
images/edit.png1.69KB0.59KB▼ 65.22%