79% anti-bloat

Code Review | Anti-Bloat

WordPress plugin Anti-Bloat scored79%from 54 tests.

About plugin

  • Plugin page: anti-bloat
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2022
  • Latest release: Sep 3, 2023
  • Number of updates: 14
  • Update frequency: every 23.9 days
  • Top authors: wpwicky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Anti-Bloat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.04 ▼4.10
Dashboard /wp-admin3.33 ▲0.0346.64 ▼3.08
Posts /wp-admin/edit.php3.38 ▲0.0250.03 ▲4.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.40 ▲11.89
Media Library /wp-admin/upload.php3.26 ▲0.0235.30 ▼1.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Anti-Bloat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.47 ▼0.291.67 ▼0.8138.99 ▼7.18
Dashboard /wp-admin2,222 ▲344.87 ▼1.0097.70 ▼16.9540.77 ▼3.81
Posts /wp-admin/edit.php2,108 ▲192.01 ▲0.0139.56 ▲0.1634.24 ▲0.60
Add New Post /wp-admin/post-new.php1,555 ▲2518.21 ▲0.18600.55 ▼12.8947.83 ▼8.62
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.02100.61 ▼2.6440.25 ▼5.92

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/anti-bloat/anti-bloat.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/anti-bloat/includes/class-anti-bloat-settings.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wordpress, optimization, plugin, bloat

anti-bloat/anti-bloat.php Passed 13 tests

The entry point to "Anti-Bloat" version 1.0.1 is a PHP file that has certain tags in its header comment area
117 characters long description:
A plugin to Disable all the WordPress Bloats Once! The settings menu "Anti-Bloat" is in the WP admin sidebar bottom.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin84 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5174284

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin