79% progress-bar-wp

Code Review | Progress Bar & Skill Bar

WordPress plugin Progress Bar & Skill Bar scored79%from 54 tests.

About plugin

  • Plugin page: progress-bar-wp
  • Plugin version: 1.4.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2017
  • Latest release: Nov 10, 2023
  • Number of updates: 33
  • Update frequency: every 65.3 days
  • Top authors: wpshopmart (60.61%)dazzlersoft (42.42%)

Code review

54 tests

User reviews

50 reviews

Install metrics

2,000+ active /60,632 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.02MB] [CPU: ▼5.29ms] Passed 4 tests

An overview of server-side resources used by Progress Bar & Skill Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.03 ▼1.05
Dashboard /wp-admin3.34 ▼0.0044.47 ▼12.71
Posts /wp-admin/edit.php3.39 ▲0.0448.20 ▲5.56
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.06 ▼2.02
Media Library /wp-admin/upload.php3.27 ▲0.0430.89 ▼5.39
Add New ProgressBar /wp-admin/post-new.php?post_type=progressbar_wp_r3.4043.03
All ProgressBar /wp-admin/edit.php?post_type=progressbar_wp_r3.3134.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Progress Bar & Skill Bar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17813.52 ▼1.2011.72 ▲9.9439.63 ▼0.20
Dashboard /wp-admin2,219 ▲455.61 ▲0.0094.06 ▲1.2540.81 ▼2.10
Posts /wp-admin/edit.php2,124 ▲242.02 ▼0.0139.51 ▲2.2035.33 ▲4.03
Add New Post /wp-admin/post-new.php1,551 ▲1323.32 ▼0.02661.53 ▼12.0660.74 ▲3.90
Media Library /wp-admin/upload.php1,424 ▲214.24 ▲0.0896.76 ▼3.3641.48 ▼0.59
Add New ProgressBar /wp-admin/post-new.php?post_type=progressbar_wp_r3,5304.60130.73183.23
All ProgressBar /wp-admin/edit.php?post_type=progressbar_wp_r1,0881.9032.2026.84

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • dazz_pb_b_review
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/progress-bar-wp/ink/admin/customRange-js.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/progress-bar-wp/ink/admin/designs.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/progress-bar-wp/ink/admin/custom-css.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-bar-wp/template/designs/design1/mystyle.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-bar-wp/template/designs/design2/mystyle.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/progress-bar-wp/ink/admin/admin-scripts.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: skill bar, skill-bars, chart bar, progress bar, graph bar...

progress-bar-wp/progress-bar-wp.php Passed 13 tests

The principal PHP file in "Progress Bar & Skill Bar" v. 1.4.7 is loaded by WordPress automatically on each request
91 characters long description:
Progress bar plugin will help you to add skill bar graph or percentage bar on your website.

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 detected17,780 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript139601,0248,400
SVG1002,671
CSS12215731,812
Sass1434341,768
LESS1434441,758
PHP19215911,371

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/button_check.png4.66KB1.57KB▼ 66.23%
assets/images/design/progress-2.png6.98KB2.38KB▼ 65.90%
assets/images/pb-template.png19.73KB6.06KB▼ 69.31%
assets/images/design/progress-3.png9.19KB2.70KB▼ 70.57%
assets/images/design/progress-1.png8.17KB2.79KB▼ 65.87%