84% bb-delete-cache

Code Review | BB Delete cache

WordPress plugin BB Delete cache scored84%from 54 tests.

About plugin

  • Plugin page: bb-delete-cache
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 10, 2017
  • Latest release: Mar 18, 2020
  • Number of updates: 10
  • Update frequency: every 141.2 days
  • Top authors: thierrypigot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /3,265 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by BB Delete cache
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.29 ▼3.32
Dashboard /wp-admin3.32 ▲0.0249.39 ▲2.06
Posts /wp-admin/edit.php3.37 ▲0.0250.49 ▼0.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.34 ▼18.64
Media Library /wp-admin/upload.php3.24 ▲0.0238.38 ▲0.62

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for BB Delete cache
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.051.72 ▼0.4840.83 ▼5.26
Dashboard /wp-admin2,195 ▲155.63 ▲0.0093.21 ▲6.5942.00 ▼2.48
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0240.00 ▲4.9140.61 ▲4.06
Add New Post /wp-admin/post-new.php1,526 ▼223.38 ▲0.20633.39 ▼50.0547.26 ▼25.24
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.06104.01 ▼1.3844.30 ▼3.88

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bb-delete-cache/bb-delete-cache.php:149

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
4 plugin tags: admin bar, cache, beaver builder, clear

bb-delete-cache/bb-delete-cache.php Passed 13 tests

"BB Delete cache" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Add delete beaver builder cache button in admin bar

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
Success! There were no dangerous files found in this plugin116 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2304486
PO File17730

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin