90% log-cleaner-for-ithemes-security

Code Review | Log cleaner for iThemes Security

WordPress plugin Log cleaner for iThemes Security scored90%from 54 tests.

About plugin

  • Plugin page: log-cleaner-for-i...
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Nov 8, 2018
  • Latest release: Jun 7, 2023
  • Number of updates: 31
  • Update frequency: every 53.9 days
  • Top authors: mikeyott (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

9,000+ active /63,496 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.25ms] Passed 4 tests

This is a short check of server-side resources used by Log cleaner for iThemes Security
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.22 ▼3.57
Dashboard /wp-admin3.31 ▲0.0147.76 ▼6.23
Posts /wp-admin/edit.php3.36 ▲0.0145.51 ▼8.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.11 ▼6.88
Media Library /wp-admin/upload.php3.23 ▲0.0138.00 ▲4.41
ITSec Log Cleaner /wp-admin/tools.php?page=log-cleaner-for-ithemes-security3.2041.34

Server storage [IO: ▲0.04MB] [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: 11 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

Checking browser requirements for Log cleaner for iThemes Security
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.48 ▼0.311.81 ▼0.1142.07 ▼3.56
Dashboard /wp-admin2,230 ▲275.85 ▲0.8498.47 ▼20.5041.22 ▼5.49
Posts /wp-admin/edit.php2,106 ▲92.02 ▲0.0135.22 ▼2.5735.80 ▲0.68
Add New Post /wp-admin/post-new.php1,546 ▲723.41 ▲0.40660.41 ▲14.6258.67 ▼8.73
Media Library /wp-admin/upload.php1,406 ▲34.18 ▼0.1299.53 ▼3.6544.72 ▼2.99
ITSec Log Cleaner /wp-admin/tools.php?page=log-cleaner-for-ithemes-security7722.0426.7432.69

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: security, log, ithemes, cleaner

log-cleaner-for-ithemes-security/log-cleaner-ithemes.php 92% from 13 tests

"Log cleaner for iThemes Security" version 1.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("log-cleaner-for-ithemes-security.php" instead of "log-cleaner-ithemes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected588 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP14120221
Sass1372199
PO File24248146
SVG10021
CSS1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin