78% bpwp-cleaner

Code Review | BlankPress WordPress Cleaner

WordPress plugin BlankPress WordPress Cleaner scored78%from 54 tests.

About plugin

  • Plugin page: bpwp-cleaner
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: Dec 20, 2014
  • Number of updates: 6
  • Update frequency: every 37.2 days
  • Top authors: dharmapoudel (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /5,552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.97ms] Passed 4 tests

A check of server-side resources used by BlankPress WordPress Cleaner
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.26 ▼4.48
Dashboard /wp-admin3.42 ▲0.0848.61 ▼9.13
Posts /wp-admin/edit.php3.55 ▲0.1945.06 ▼0.80
Add New Post /wp-admin/post-new.php6.01 ▲0.1288.21 ▲4.03
Media Library /wp-admin/upload.php3.36 ▲0.1335.05 ▲2.55
BPWP Cleaner /wp-admin/options-general.php?page=bpwpcleaner-setting3.3028.17

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

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

Browser metrics Passed 4 tests

Checking browser requirements for BlankPress WordPress Cleaner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,353 ▼39714.25 ▼0.101.21 ▼0.4342.66 ▲1.56
Dashboard /wp-admin1,938 ▼2425.43 ▼0.2478.57 ▼4.7736.09 ▼4.30
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0233.50 ▼3.9834.59 ▼1.74
Add New Post /wp-admin/post-new.php1,530 ▲418.16 ▼5.09611.53 ▼63.2369.93 ▲17.71
Media Library /wp-admin/upload.php1,396 ▼44.22 ▲0.0794.43 ▼9.2541.95 ▼0.51
BPWP Cleaner /wp-admin/options-general.php?page=bpwpcleaner-setting1,0832.1024.7528.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=bpwpcleaner-setting
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=bpwpcleaner-setting
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Almost there! Just fix the following items
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_settings_section() in wp-content/plugins/bpwp-cleaner/inc/settings-misc.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bpwp-cleaner/inc/cleanup-head.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bpwp-cleaner/inc/cleanup-dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_settings_section() in wp-content/plugins/bpwp-cleaner/inc/settings-head.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bpwp-cleaner/inc/class.bpwpc-cleanup.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_settings_section() in wp-content/plugins/bpwp-cleaner/inc/settings-dashboard.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'BPWPC_Cleanup' not found in wp-content/plugins/bpwp-cleaner/inc/class.bpwpc-core.php:19
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bpwp-cleaner/inc/cleanup-misc.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: wp optimizer, header cleaner, springclean wordpress, wordpress cleaner, disable login shake...

bpwp-cleaner/index.php 85% from 13 tests

The primary PHP file in "BlankPress WordPress Cleaner" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 214 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("bpwp-cleaner.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected621 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP921899574
JavaScript110637
CSS10210

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin