84% surbma-multisite-transient-cleaner

Code Review | Surbma | Multisite Transient Cleaner

WordPress plugin Surbma | Multisite Transient Cleaner scored84%from 54 tests.

About plugin

  • Plugin page: surbma-multisite-...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Apr 8, 2023
  • Number of updates: 15
  • Update frequency: every 199.5 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Surbma | Multisite Transient Cleaner
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.91 ▼2.77
Dashboard /wp-admin3.31 ▲0.0148.02 ▼0.62
Posts /wp-admin/edit.php3.36 ▲0.0147.03 ▲2.09
Add New Post /wp-admin/post-new.php5.89 ▲0.01104.40 ▲7.67
Media Library /wp-admin/upload.php3.23 ▲0.0133.83 ▲2.21

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Surbma | Multisite Transient Cleaner: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.571.68 ▼0.0138.40 ▼1.02
Dashboard /wp-admin2,206 ▲155.86 ▼0.04106.15 ▲5.2839.92 ▼5.88
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0246.68 ▲8.0734.21 ▲0.54
Add New Post /wp-admin/post-new.php1,514 ▼017.51 ▼0.02666.20 ▼9.8262.00 ▲11.92
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0396.53 ▼10.5844.75 ▼3.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/surbma-multisite-transient-cleaner/surbma-multisite-transient-cleaner.php

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: site transient, multisite, site transients, transients, transient

surbma-multisite-transient-cleaner/surbma-multisite-transient-cleaner.php 92% from 13 tests

"Surbma | Multisite Transient Cleaner" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin25 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101422
Markdown1103

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions2
▷ Named functions2100.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
No PNG files were detected