89% wp-log-viewer

Code Review | WP Log Viewer

WordPress plugin WP Log Viewer scored89%from 54 tests.

About plugin

  • Plugin page: wp-log-viewer
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8
  • WordPress version: 6.3.1
  • First release: Aug 20, 2015
  • Latest release: Jun 15, 2017
  • Number of updates: 31
  • Update frequency: every 21.5 days
  • Top authors: maxwellberkel (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active /57,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼8.02ms] Passed 4 tests

Server-side resources used by WP Log Viewer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.78 ▼30.20
Dashboard /wp-admin3.44 ▲0.1445.59 ▼5.47
Posts /wp-admin/edit.php3.55 ▲0.2049.23 ▲1.23
Add New Post /wp-admin/post-new.php6.04 ▲0.1597.51 ▲7.76
Media Library /wp-admin/upload.php3.36 ▲0.1336.07 ▲2.38
Log Viewer /wp-admin/tools.php?page=wp-log-viewer3.3329.93

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Log Viewer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲15914.94 ▲0.571.61 ▼0.9328.57 ▼26.77
Dashboard /wp-admin2,302 ▲1116.63 ▲1.77135.83 ▲21.2047.58 ▲2.32
Posts /wp-admin/edit.php2,144 ▲583.17 ▲1.1655.81 ▲18.9241.85 ▲5.69
Add New Post /wp-admin/post-new.php1,538 ▲523.88 ▲0.77618.29 ▼62.7833.95 ▼28.01
Media Library /wp-admin/upload.php1,437 ▲465.73 ▲1.57111.48 ▲16.3344.53 ▼0.65
Log Viewer /wp-admin/tools.php?page=wp-log-viewer1,2623.3151.5146.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: There are too many tags (65 tag instead of maximum 10)
The official readme.txt might help

wp-log-viewer/wp-log-viewer.php 92% from 13 tests

The main PHP file in "WP Log Viewer" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,590 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP14458953937
SVG100640
JavaScript1009
CSS1034

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.50
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods92
▷ Static methods1516.30%
▷ Public methods8491.30%
▷ Protected methods00.00%
▷ Private methods88.70%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants11
▷ Global constants436.36%
▷ Class constants763.64%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin