78% pbp-dashboard-widget-cleaner

Code Review | PBP Dashboard Changer

WordPress plugin PBP Dashboard Changer scored78%from 54 tests.

About plugin

  • Plugin page: pbp-dashboard-wid...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2013
  • Latest release: Apr 25, 2015
  • Number of updates: 14
  • Update frequency: every 42.1 days
  • Top authors: projoktibangla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,670 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.86ms] Passed 4 tests

A check of server-side resources used by PBP Dashboard Changer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.48 ▼14.42
Dashboard /wp-admin3.36 ▲0.0253.26 ▼7.95
Posts /wp-admin/edit.php3.48 ▲0.1255.95 ▲7.44
Add New Post /wp-admin/post-new.php5.95 ▲0.0589.52 ▼16.52
Media Library /wp-admin/upload.php3.29 ▲0.0550.21 ▲14.49
PBP DB Changer /wp-admin/options-general.php?page=pbp-dashboard-changer3.2744.53

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by PBP Dashboard Changer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.23 ▼0.201.82 ▼0.6742.35 ▼19.02
Dashboard /wp-admin2,207 ▲305.69 ▼0.0093.51 ▼5.3538.62 ▼6.98
Posts /wp-admin/edit.php2,129 ▲292.31 ▲0.2943.04 ▲6.3132.88 ▼3.99
Add New Post /wp-admin/post-new.php1,539 ▼623.39 ▲0.17684.51 ▲15.1652.33 ▼4.24
Media Library /wp-admin/upload.php1,422 ▲224.31 ▲0.10108.04 ▼0.9643.53 ▲0.02
PBP DB Changer /wp-admin/options-general.php?page=pbp-dashboard-changer1,0142.3254.7341.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=pbp-dashboard-changer
    • > 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=pbp-dashboard-changer
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=pbp-dashboard-changer
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% 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 items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/pbp-dashboard-widget-cleaner/options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pbp-dashboard-widget-cleaner/panel.php:88
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pbp-dashboard-widget-cleaner/panel.php:88

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: dashboard, wp dashboard customizer, customize dashboard, wordpress, dashboard changer...

pbp-dashboard-widget-cleaner/pbpdc.php 92% from 13 tests

The principal PHP file in "PBP Dashboard Changer" v. 2.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pbp-dashboard-widget-cleaner.php" instead of "pbpdc.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
Everything looks great! No dangerous files found in this plugin505 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP311473291
CSS120168
JavaScript2141246

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/fold.png3.41KB0.73KB▼ 78.61%