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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.22 ▼3.57 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.76 ▼6.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.51 ▼8.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.11 ▼6.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.00 ▲4.41 |
ITSec Log Cleaner /wp-admin/tools.php?page=log-cleaner-for-ithemes-security | 3.20 | 41.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.48 ▼0.31 | 1.81 ▼0.11 | 42.07 ▼3.56 |
Dashboard /wp-admin | 2,230 ▲27 | 5.85 ▲0.84 | 98.47 ▼20.50 | 41.22 ▼5.49 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.02 ▲0.01 | 35.22 ▼2.57 | 35.80 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,546 ▲7 | 23.41 ▲0.40 | 660.41 ▲14.62 | 58.67 ▼8.73 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.18 ▼0.12 | 99.53 ▼3.65 | 44.72 ▼2.99 |
ITSec Log Cleaner /wp-admin/tools.php?page=log-cleaner-for-ithemes-security | 772 | 2.04 | 26.74 | 32.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 41 | 20 | 221 |
Sass | 1 | 37 | 2 | 199 |
PO File | 2 | 42 | 48 | 146 |
SVG | 1 | 0 | 0 | 21 |
CSS | 1 | 0 | 1 | 1 |
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 code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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