68% bspb-progressbar

Code Review | BSPB ProgressBar by pierre gagliardi

WordPress plugin BSPB ProgressBar by pierre gagliardi scored68%from 54 tests.

About plugin

  • Plugin page: bspb-progressbar
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 2, 2016
  • Latest release: Apr 2, 2016
  • Number of updates: 20
  • Update frequency: every 0.1 days
  • Top authors: cchumi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /987 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.49MB] [CPU: ▼32.68ms] Passed 4 tests

Server-side resources used by BSPB ProgressBar by pierre gagliardi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3125.05 ▼19.87
Dashboard /wp-admin3.45 ▲0.1527.36 ▼17.68
Posts /wp-admin/edit.php3.45 ▲0.1027.77 ▼18.57
Add New Post /wp-admin/post-new.php3.45 ▼2.4326.65 ▼74.59
Media Library /wp-admin/upload.php3.45 ▲0.2228.65 ▼7.66
BSPB Plugin /wp-admin/options-general.php?page=bspb-plugin3.4527.54

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
bspb_plugin_version
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for BSPB ProgressBar by pierre gagliardi
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲18213.62 ▼0.6810.55 ▲8.4539.15 ▼3.19
Dashboard /wp-admin2,216 ▲424.90 ▼1.01111.33 ▲3.4839.17 ▼3.32
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0535.95 ▼6.5835.63 ▼0.23
Add New Post /wp-admin/post-new.php1,526 ▼723.55 ▲0.39677.72 ▼10.2169.20 ▲9.16
Media Library /wp-admin/upload.php1,398 ▲134.15 ▼0.0997.85 ▼2.1143.02 ▲2.09
BSPB Plugin /wp-admin/options-general.php?page=bspb-plugin1,2042.5661.0738.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/bspb-progressbar/includes/class-settings.php+716
    Undefined index: not_animate_on_mobile
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • bspb_plugin_version
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bspb-plugin
    • > Notice in wp-content/plugins/bspb-progressbar/includes/class-settings.php+717
    Undefined index: not_animate_on_mobile
    • > GET request to /wp-admin/options-general.php?page=bspb-plugin
    • > 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=bspb-plugin
    • > 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BSPB_Plugin() in wp-content/plugins/bspb-progressbar/css/custom-css.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: bar, circular, vertical, horizontal, progress...

bspb-progressbar/bspb_progressbar_animated.php 85% from 13 tests

The entry point to "BSPB ProgressBar by pierre gagliardi" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bspb-progressbar.php" instead of "bspb_progressbar_animated.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 plugin3,073 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP43603571,622
CSS44864806
PO File1145162348
JavaScript611557297

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity63.67
▷ Minimum class complexity18.00
▷ Maximum class complexity141.00
Average method complexity7.27
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods13.33%
▷ Public methods2686.67%
▷ Protected methods00.00%
▷ Private methods413.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.41MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png3.20KB1.19KB▼ 62.86%
assets/screenshot-3.png103.99KB33.72KB▼ 67.57%
assets/screenshot-1.png75.90KB24.21KB▼ 68.10%
images/logo-white.png10.13KB4.88KB▼ 51.88%
assets/screenshot-4.png144.60KB43.39KB▼ 69.99%