10% bi-clean-cache

Code Review | BI Clean Cache

WordPress plugin BI Clean Cache scored10%from 54 tests.

About plugin

  • Plugin page: bi-clean-cache
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 6.3.1
  • First release: Jul 7, 2016
  • Latest release: Jul 7, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jayeshmahajan23 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,971 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method bi_cleancache_aow3tc::bi_cleancache_init_system() should not be called statically

Server metrics [RAM: ▼0.92MB] [CPU: ▼31.69ms] Passed 4 tests

This is a short check of server-side resources used by BI Clean Cache
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.72 ▼2.60
Dashboard /wp-admin3.03 ▼0.2821.89 ▼27.51
Posts /wp-admin/edit.php3.03 ▼0.3323.43 ▼20.35
Add New Post /wp-admin/post-new.php3.03 ▼2.8624.59 ▼65.30
Media Library /wp-admin/upload.php3.03 ▼0.2019.74 ▼13.59

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

BI Clean Cache: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.57 ▼0.831.81 ▼0.2643.55 ▲0.91
Dashboard /wp-admin2,222 ▲345.92 ▲1.03109.16 ▼8.9042.81 ▼3.87
Posts /wp-admin/edit.php2,111 ▲222.08 ▲0.0639.52 ▲3.0635.86 ▼1.51
Add New Post /wp-admin/post-new.php1,543 ▲1018.40 ▼4.53627.56 ▼42.8451.06 ▼1.46
Media Library /wp-admin/upload.php1,407 ▲254.36 ▲0.1699.33 ▼6.8443.64 ▼0.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method bi_cleancache_aow3tc::bi_cleancache_pageinit() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bi-clean-cache/bi_cleancache_aow3tc.php:177

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

bi-clean-cache/bi_cleancache_aow3tc.php 85% from 13 tests

The principal PHP file in "BI Clean Cache" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bi-clean-cache.php" instead of "bi_cleancache_aow3tc.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 203 characters long)

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
Good job! No executable or dangerous file extensions detected2,273 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1169341,646
CSS16815485
PHP1942142

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin