74% bloat-buster

Code Review | Bloat Buster - A Simple Plugin To Kill Off Bloat

WordPress plugin Bloat Buster - A Simple Plugin To Kill Off Bloat scored74%from 54 tests.

About plugin

  • Plugin page: bloat-buster
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2022
  • Latest release: Mar 17, 2023
  • Number of updates: 9
  • Update frequency: every 40.4 days
  • Top authors: alvindcaesar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,215 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.09ms] Passed 4 tests

A check of server-side resources used by Bloat Buster - A Simple Plugin To Kill Off Bloat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.14 ▲9.03
Dashboard /wp-admin3.33 ▲0.0246.92 ▲0.75
Posts /wp-admin/edit.php3.38 ▲0.0244.27 ▲0.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.98 ▼12.70
Media Library /wp-admin/upload.php3.25 ▲0.0236.23 ▲3.58
Bloat Buster /wp-admin/options-general.php?page=bbuster-options3.2651.69

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Bloat Buster - A Simple Plugin To Kill Off Bloat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.56 ▲0.291.93 ▼2.0842.65 ▲1.17
Dashboard /wp-admin2,210 ▲224.85 ▼0.96106.47 ▲3.6143.15 ▲1.93
Posts /wp-admin/edit.php2,072 ▼202.01 ▲0.0136.63 ▼3.8238.62 ▲3.87
Add New Post /wp-admin/post-new.php1,540 ▲2623.30 ▲5.69671.92 ▼2.7552.26 ▼4.81
Media Library /wp-admin/upload.php1,389 ▲44.19 ▲0.0395.86 ▼14.3344.28 ▼1.42
Bloat Buster /wp-admin/options-general.php?page=bbuster-options8732.0323.1727.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Incomplete uninstall procedure, leaving 26 files (0.05MB) in the plugin directory
    • (new file) index.php
    • (new file) includes/partials/import-form.php
    • (new file) includes/partials/export-form.php
    • (new file) includes/partials/option-page.php
    • (new file) src/Base/Activate.php
    • (new file) src/Base/Deactivate.php
    • (new file) includes/partials/layout.php
    • (new file) LICENSE.txt
    • (new file) README.txt
    • (new file) bloat-buster.php
    • ...
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'BBUSTER_PATHincludes/partials/option-page.php' (include_path='.:/usr/share/php') in wp-content/plugins/bloat-buster/includes/partials/layout.php on line 18
    • > PHP Warning
      Use of undefined constant BBUSTER_PATH - assumed 'BBUSTER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bloat-buster/includes/partials/layout.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/bloat-buster/includes/partials/import-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/bloat-buster/includes/partials/option-page.php:2
    • > PHP Warning
      require_once(BBUSTER_PATHincludes/partials/option-page.php): failed to open stream: No such file or directory in wp-content/plugins/bloat-buster/includes/partials/layout.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/bloat-buster/includes/partials/export-form.php:2

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Setting page overview)
The official readme.txt might help

bloat-buster/bloat-buster.php 92% from 13 tests

This is the main PHP file of "Bloat Buster - A Simple Plugin To Kill Off Bloat" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin711 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP23164324711

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity6.58
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods48
▷ Static methods1020.83%
▷ Public methods4695.83%
▷ Protected methods00.00%
▷ Private methods24.17%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants5
▷ Global constants5100.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