84% auto-delete-system-status-logs

Code Review | Auto Delete System Status Logs for WooCommerce

WordPress plugin Auto Delete System Status Logs for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: auto-delete-syste...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1.0
  • WordPress version: 6.3.1
  • First release: Jun 16, 2022
  • Latest release: Nov 2, 2022
  • Number of updates: 16
  • Update frequency: every 9.4 days
  • Top authors: tusharknovator (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /845 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.44ms] Passed 4 tests

Server-side resources used by Auto Delete System Status Logs for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.19 ▲1.61
Dashboard /wp-admin3.31 ▲0.0047.08 ▼4.14
Posts /wp-admin/edit.php3.36 ▲0.0047.27 ▼4.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.51 ▼15.22
Media Library /wp-admin/upload.php3.23 ▲0.0037.65 ▲4.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Delete System Status Logs for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.22 ▼1.021.93 ▼0.0043.79 ▼0.45
Dashboard /wp-admin2,218 ▲155.85 ▲0.0497.01 ▼10.7342.93 ▼2.81
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0134.07 ▼4.1036.19 ▼0.77
Add New Post /wp-admin/post-new.php1,526 ▼1417.62 ▼0.58648.00 ▼11.8350.82 ▼21.00
Media Library /wp-admin/upload.php1,397 ▼34.42 ▲0.20101.40 ▼3.8745.50 ▼2.81

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/auto-delete-system-status-logs/index.php:20

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: savedisk, autodelete, statuslogs

auto-delete-system-status-logs/index.php 92% from 13 tests

The main PHP script in "Auto Delete System Status Logs for WooCommerce" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("auto-delete-system-status-logs.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin102 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ 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