90% manage-inactive-subsites

Code Review | Manage Inactive Subsites

WordPress plugin Manage Inactive Subsites scored90%from 54 tests.

About plugin

  • Plugin page: manage-inactive-s...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2019
  • Latest release: Dec 30, 2022
  • Number of updates: 4
  • Update frequency: every 323.7 days
  • Top authors: iworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Manage Inactive Subsites
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.87 ▼3.98
Dashboard /wp-admin3.31 ▼0.0446.85 ▼12.61
Posts /wp-admin/edit.php3.36 ▲0.0047.75 ▼2.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.68 ▼2.82
Media Library /wp-admin/upload.php3.23 ▲0.0033.95 ▲1.73

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Manage Inactive Subsites: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.27 ▼1.111.89 ▼0.6742.51 ▼5.30
Dashboard /wp-admin2,209 ▲215.85 ▼0.04101.82 ▼4.7536.00 ▼7.46
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0039.62 ▼6.3733.82 ▼0.80
Add New Post /wp-admin/post-new.php1,536 ▼223.17 ▲4.78590.02 ▼44.8648.67 ▼9.93
Media Library /wp-admin/upload.php1,382 ▼64.21 ▲0.0296.22 ▲1.1640.52 ▼2.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: automate, management, multisite

manage-inactive-subsites/manage-inactive-subsites.php Passed 13 tests

Analyzing the main PHP file in "Manage Inactive Subsites" version 1.0.0
72 characters long description:
Allow automate handle status of inactive site in MultiSite installation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin552 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP487424541
JavaScript10011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity21.00
▷ Minimum class complexity10.00
▷ Maximum class complexity29.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2172.41%
▷ Protected methods310.34%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin