84% wpsimpletools-log-viewer

Code Review | Basic Log Viewer

WordPress plugin Basic Log Viewer scored84%from 54 tests.

About plugin

  • Plugin page: wpsimpletools-log...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 18, 2018
  • Latest release: Apr 14, 2021
  • Number of updates: 20
  • Update frequency: every 50.1 days
  • Top authors: wordpresssimpletools (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active /4,969 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.44ms] Passed 4 tests

Server-side resources used by Basic Log Viewer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.42 ▼3.12
Dashboard /wp-admin3.31 ▲0.0146.53 ▼4.99
Posts /wp-admin/edit.php3.36 ▲0.0046.96 ▼2.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.27 ▼3.11
Media Library /wp-admin/upload.php3.23 ▲0.0038.07 ▲3.30
Log viewer /wp-admin/tools.php?page=wpsimpletools-log-viewer3.2033.82

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Basic Log Viewer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.72 ▲0.071.81 ▼0.5550.02 ▲3.95
Dashboard /wp-admin2,196 ▲225.51 ▼0.0988.77 ▼21.6537.31 ▼11.10
Posts /wp-admin/edit.php2,107 ▲71.98 ▲0.0038.50 ▲2.0837.83 ▲2.62
Add New Post /wp-admin/post-new.php1,534 ▲622.98 ▼0.28612.69 ▼84.2966.32 ▲6.39
Media Library /wp-admin/upload.php1,410 ▲104.23 ▲0.1299.05 ▼11.1348.94 ▲2.46
Log viewer /wp-admin/tools.php?page=wpsimpletools-log-viewer7702.0339.5626.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • 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)
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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpsimpletools-log-viewer/wpsimpletools-log-viewer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: php, log file, php logs, logs, log viewer

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

The main file in "Basic Log Viewer" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Shows default WP / PHP log file from admin interface, gives the possibility to erase it.

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
There were no executable files found in this plugin49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191149

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin