10% jeepers-peepers

Code Review | Jeepers Peepers: WP Syslog

WordPress plugin Jeepers Peepers: WP Syslog scored10%from 54 tests.

About plugin

  • Plugin page: jeepers-peepers
  • Plugin version: 0.5.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: May 26, 2017
  • Latest release: Aug 9, 2023
  • Number of updates: 30
  • Update frequency: every 75.5 days
  • Top authors: blobfolio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,833 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/jeepers-peepers/index.php+171
    file_put_contents(/var/log/wordpress/wp.com.log): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.92MB] [CPU: ▼51.32ms] Passed 4 tests

A check of server-side resources used by Jeepers Peepers: WP Syslog
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.396.33 ▼35.77
Dashboard /wp-admin2.09 ▼1.215.72 ▼42.27
Posts /wp-admin/edit.php2.09 ▼1.278.09 ▼37.74
Add New Post /wp-admin/post-new.php2.09 ▼3.806.05 ▼89.48
Media Library /wp-admin/upload.php2.09 ▼1.145.39 ▼31.24

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jeepers Peepers: WP Syslog
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.42 ▲0.111.79 ▼0.1043.40 ▼1.71
Dashboard /wp-admin2,206 ▲184.87 ▲0.01103.36 ▼11.9542.18 ▼2.47
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0334.71 ▲0.5435.91 ▼2.94
Add New Post /wp-admin/post-new.php1,533 ▼023.50 ▲0.51644.48 ▼27.3047.01 ▼5.81
Media Library /wp-admin/upload.php1,388 ▼04.40 ▲0.1795.29 ▼0.4743.38 ▼0.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/jeepers-peepers/index.php+171
    file_put_contents(/var/log/wordpress/wp.com.log): failed to open stream: No such file or directory
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: event log, system log, monitor, forensics, security...

jeepers-peepers/index.php 92% from 13 tests

This is the main PHP file of "Jeepers Peepers: WP Syslog" version 0.5.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("jeepers-peepers.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected522 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4119311522

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity27.00
▷ Minimum class complexity11.00
▷ Maximum class complexity43.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods25100.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants10
▷ Global constants660.00%
▷ Class constants440.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin