90% unbloater

Code Review | Unbloater

WordPress plugin Unbloater scored 90% from 54 tests.

About plugin

  • Plugin page: unbloater
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.2
  • WordPress version: 6.3.1
  • First release: Jan 5, 2021
  • Latest release: May 19, 2023
  • Number of updates: 32
  • Update frequency: every 27.0 days
  • Top authors: christophrado (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

5,000+ active / 27,040 total downloads

Benchmarks

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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.80ms] Passed 4 tests

An overview of server-side resources used by Unbloater
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.45 ▼6.56
Dashboard /wp-admin3.35 ▲0.0542.37 ▼5.00
Posts /wp-admin/edit.php3.40 ▲0.0446.80 ▲5.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.70 ▼4.87
Media Library /wp-admin/upload.php3.27 ▲0.0440.67 ▲7.64
Unbloater /wp-admin/options-general.php?page=unbloater3.2429.09

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
unbloater_settings
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Unbloater
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.60 ▼0.831.85 ▲0.0341.16 ▼8.36
Dashboard /wp-admin2,210 ▲224.88 ▼1.00112.07 ▼3.5041.98 ▼4.36
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0439.50 ▲3.7035.33 ▼3.98
Add New Post /wp-admin/post-new.php1,547 ▲1418.69 ▼4.38591.66 ▼74.6848.14 ▼7.74
Media Library /wp-admin/upload.php1,389 ▲14.28 ▲0.0694.03 ▼6.7040.48 ▼2.84
Unbloater /wp-admin/options-general.php?page=unbloater1,3342.0427.2638.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
5 plugin tags: remove, notice, unbloat, bloat, clean

unbloater/unbloater.php Passed 13 tests

"Unbloater" version 1.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
Remove unnecessary code, nags and bloat from WordPress core and certain plugins.

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
There were no executable files found in this plugin1,522 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP83592151,522

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity26.50
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods119
▷ Static methods43.36%
▷ Public methods11899.16%
▷ Protected methods00.00%
▷ Private methods10.84%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin