90% freesoul-deactivate-plugins

Code Review | Freesoul Deactivate Plugins - Plugin manager and cleanup

WordPress plugin Freesoul Deactivate Plugins - Plugin manager and cleanup scored90%from 54 tests.

About plugin

  • Plugin page: freesoul-deactiva...
  • Plugin version: 2.1.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jun 13, 2018
  • Latest release: Nov 20, 2023
  • Number of updates: 963
  • Update frequency: every 2.1 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

85 reviews

Install metrics

9,000+ active /254,580 total downloads

Benchmarks

Plugin footprint 82% 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: ▲1.03MB] [CPU: ▲18.01ms] Passed 4 tests

An overview of server-side resources used by Freesoul Deactivate Plugins - Plugin manager and cleanup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4947.52 ▲11.91
Dashboard /wp-admin4.52 ▲1.2159.74 ▲12.78
Posts /wp-admin/edit.php4.57 ▲1.2170.13 ▲24.20
Add New Post /wp-admin/post-new.php7.12 ▲1.24109.68 ▲27.38
Media Library /wp-admin/upload.php4.44 ▲1.2154.66 ▲23.16
Actions /wp-admin/admin.php?page=eos_dp_integration4.7054.56
Archives /wp-admin/admin.php?page=eos_dp_by_archive4.6953.26
Custom URLs /wp-admin/admin.php?page=eos_dp_url4.6755.39
Help /wp-admin/admin.php?page=eos_dp_help4.6850.27
Create new /wp-admin/plugins.php?page=eos_dp_create_plugin4.6843.02
Firing Order /wp-admin/admin.php?page=eos_dp_firing_order4.6550.06
Backend /wp-admin/admin.php?page=eos_dp_admin4.7153.77
Add-ons /wp-admin/admin.php?page=eos_dp_addons4.6046.58
Plugins Manager /wp-admin/plugins.php?page=eos_dp_menu4.6747.24
Search /wp-admin/admin.php?page=eos_dp_search4.6749.45

Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (109.66KB) outside of "wp-content/plugins/freesoul-deactivate-plugins/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/eos-deactivate-plugins.php
Filesystem: 183 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
eos_dp_activation_info
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Freesoul Deactivate Plugins - Plugin manager and cleanup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10014.77 ▲0.434.59 ▲2.9346.18 ▼0.94
Dashboard /wp-admin2,267 ▲925.60 ▼0.03102.38 ▼15.7043.86 ▼1.48
Posts /wp-admin/edit.php2,182 ▲822.07 ▲0.0742.29 ▲6.6633.90 ▼0.79
Add New Post /wp-admin/post-new.php1,588 ▲6223.47 ▲0.23659.80 ▼41.6751.12 ▼2.05
Media Library /wp-admin/upload.php1,542 ▲1424.45 ▲0.30102.14 ▼8.6842.35 ▼1.53
Actions /wp-admin/admin.php?page=eos_dp_integration2,0211.6920.8733.93
Archives /wp-admin/admin.php?page=eos_dp_by_archive1,5991.6317.7225.49
Custom URLs /wp-admin/admin.php?page=eos_dp_url1,4951.7820.2222.38
Help /wp-admin/admin.php?page=eos_dp_help1,2891.2614.5925.01
Create new /wp-admin/plugins.php?page=eos_dp_create_plugin1,3351.2513.6921.72
Firing Order /wp-admin/admin.php?page=eos_dp_firing_order1,3651.6718.2820.13
Backend /wp-admin/admin.php?page=eos_dp_admin2,7811.6716.6531.61
Add-ons /wp-admin/admin.php?page=eos_dp_addons1,0911.2112.4428.77
Plugins Manager /wp-admin/plugins.php?page=eos_dp_menu2,1351.9522.9831.11
Search /wp-admin/admin.php?page=eos_dp_search1,3961.6013.9220.23

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: debugging, dequeue, performance, cleanup, speed optimization

freesoul-deactivate-plugins/freesoul-deactivate-plugins.php Passed 13 tests

This is the main PHP file of "Freesoul Deactivate Plugins - Plugin manager and cleanup" version 2.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
125 characters long description:
Disable plugins on specific pages for performance improvement and support in problem-solving even when you have many plugins.

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
Everything looks great! No dangerous files found in this plugin26,776 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP1009744,15816,023
PO File132,7733,8905,810
JavaScript8403,571
CSS7182141,296
SVG30062
JSON30014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity44.28
▷ Minimum class complexity2.00
▷ Maximum class complexity168.00
Average method complexity6.47
▷ Minimum method complexity1.00
▷ Maximum method complexity88.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes211.11%
▷ Concrete classes1688.89%
▷ Final classes00.00%
Methods145
▷ Static methods64.14%
▷ Public methods12384.83%
▷ Protected methods00.00%
▷ Private methods2215.17%
Functions333
▷ Named functions26479.28%
▷ Anonymous functions6920.72%
Constants39
▷ Global constants39100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/default-plugin-icon.png2.10KB2.02KB▼ 3.68%
admin/assets/img/fdp-hook.png4.52KB1.47KB▼ 67.55%
admin/assets/img/vendors/gpsi-icon.png3.48KB0.70KB▼ 79.93%
admin/assets/img/wordpress-deactivate-plugins-rotated.png1.25KB0.96KB▼ 23.29%
admin/assets/img/eos-post-lock.png1.47KB1.11KB▼ 24.25%