90% logs-display

Code Review | Logs Display

WordPress plugin Logs Display scored90%from 54 tests.

About plugin

  • Plugin page: logs-display
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Mar 8, 2017
  • Number of updates: 29
  • Update frequency: every 11.6 days
  • Top authors: webstartup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,471 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲3.70ms] Passed 4 tests

A check of server-side resources used by Logs Display
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.86 ▲1.05
Dashboard /wp-admin3.43 ▲0.1353.24 ▲3.90
Posts /wp-admin/edit.php3.54 ▲0.1851.28 ▲6.65
Add New Post /wp-admin/post-new.php6.01 ▲0.12101.15 ▲8.00
Media Library /wp-admin/upload.php3.35 ▲0.1241.33 ▲3.19

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options
slwsu_logs_display_delete_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
slwsu_logs_display_grouper
theysaidso_admin_options
slwsu_logs_display_show_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Logs Display
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲16013.18 ▼1.172.20 ▲0.3942.15 ▼2.58
Dashboard /wp-admin2,296 ▲925.83 ▲0.94102.08 ▼10.2744.12 ▲0.70
Posts /wp-admin/edit.php2,118 ▲182.00 ▼0.0535.87 ▲0.1339.27 ▲4.67
Add New Post /wp-admin/post-new.php1,563 ▲1823.16 ▼0.05677.97 ▼14.4981.09 ▲29.59
Media Library /wp-admin/upload.php1,421 ▲214.21 ▼0.0699.42 ▼14.7942.51 ▼7.43

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: logs, logs display, php logs, php

logs-display/logs-display.php 92% from 13 tests

The main file in "Logs Display" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin729 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10149193588
PO File15353141

PHP code Passed 2 tests

A short review 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.28
Average class complexity7.11
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods47
▷ Static methods1225.53%
▷ Public methods4391.49%
▷ Protected methods00.00%
▷ Private methods48.51%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected