84% wp-output-log-file

Code Review | WP Output Log File

WordPress plugin WP Output Log File scored84%from 54 tests.

About plugin

  • Plugin page: wp-output-log-file
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2017
  • Latest release: Sep 5, 2017
  • Number of updates: 4
  • Update frequency: every 47.0 days
  • Top authors: Reiji Sato (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,187 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WP Output Log File
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.46 ▼1.67
Dashboard /wp-admin3.38 ▲0.0842.61 ▼4.94
Posts /wp-admin/edit.php3.50 ▲0.1443.54 ▼1.74
Add New Post /wp-admin/post-new.php5.96 ▲0.0889.59 ▲1.61
Media Library /wp-admin/upload.php3.31 ▲0.0834.07 ▼2.74
WP Output Log File /wp-admin/options-general.php?page=wp-output-log-file-page-id3.2830.62

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Output Log File
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.64 ▼0.721.68 ▼0.2640.43 ▼2.31
Dashboard /wp-admin2,210 ▲224.86 ▼0.02107.74 ▲3.4639.95 ▼1.99
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0437.64 ▼0.0632.03 ▼4.79
Add New Post /wp-admin/post-new.php1,517 ▼1617.79 ▼5.29631.92 ▼73.8449.89 ▼6.42
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0794.19 ▼20.1841.82 ▼8.94
WP Output Log File /wp-admin/options-general.php?page=wp-output-log-file-page-id8422.0522.1329.75

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-output-log-file/includes/class-wolf-admin.php:281
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-output-log-file/includes/class-wolf-admin.php:281

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: developer, debugging, debug, log, error

wp-output-log-file/wp-output-log-file.php Passed 13 tests

The main file in "WP Output Log File" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
24 characters long description:
Manage log files plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin395 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP410681395

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity23.33
▷ Minimum class complexity7.00
▷ Maximum class complexity34.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
PNG images were not found in this plugin