62% progress-skill-bar

Code Review | Progress Skill Bar

WordPress plugin Progress Skill Bar scored62%from 54 tests.

About plugin

  • Plugin page: progress-skill-bar
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2021
  • Latest release: Jun 17, 2023
  • Number of updates: 9
  • Update frequency: every 63.1 days
  • Top authors: wpmart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /774 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▲0.64ms] Passed 4 tests

A check of server-side resources used by Progress Skill Bar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1436.69 ▼3.10
Dashboard /wp-admin3.46 ▲0.1645.25 ▼4.22
Posts /wp-admin/edit.php3.58 ▲0.2247.61 ▲3.46
Add New Post /wp-admin/post-new.php6.04 ▲0.16109.24 ▲14.52
Media Library /wp-admin/upload.php3.39 ▲0.1636.34 ▲6.44
Template 11-20 /wp-admin/admin.php?page=pbar-6310-template-11-203.4431.24
How to use /wp-admin/admin.php?page=pbar-6310-progress-bar-use3.3639.91
All Progress bar /wp-admin/admin.php?page=pbar-6310-progress-bar3.3744.98
License /wp-admin/admin.php?page=pbar-6310-progress-bar-license3.3646.51
Manage progress bar /wp-admin/admin.php?page=pbar-6310-progress-bar-manage-items3.3846.23
Import/Export Plugin /wp-admin/admin.php?page=pbar-6310-progress-bar-import-export3.3835.93
Template 01-10 /wp-admin/admin.php?page=pbar-6310-template-01-103.4533.44
Template 21-30 /wp-admin/admin.php?page=pbar-6310-template-21-303.4436.19
WpMart Plugins /wp-admin/admin.php?page=pbar-6310-wpmart-plugins3.3635.93

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 172 new files
Database: 2 new tables, 7 new options
New tables
wp_pbar_6310_item
wp_pbar_6310_style
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
pbar_6310_version_info
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Progress Skill Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.25 ▼1.311.69 ▲0.1739.87 ▼1.96
Dashboard /wp-admin2,257 ▲724.82 ▼1.06107.76 ▲5.1040.60 ▼0.95
Posts /wp-admin/edit.php2,140 ▲542.05 ▲0.0640.22 ▲2.6935.04 ▲1.26
Add New Post /wp-admin/post-new.php1,573 ▲3123.20 ▲4.79640.02 ▲17.0752.77 ▼2.57
Media Library /wp-admin/upload.php1,439 ▲514.23 ▲0.0494.97 ▼3.7941.30 ▼2.40
Template 11-20 /wp-admin/admin.php?page=pbar-6310-template-11-202,01411.98328.57182.46
How to use /wp-admin/admin.php?page=pbar-6310-progress-bar-use3,33231.02936.4551.04
All Progress bar /wp-admin/admin.php?page=pbar-6310-progress-bar9452.6945.0338.83
License /wp-admin/admin.php?page=pbar-6310-progress-bar-license9702.7344.9239.36
Manage progress bar /wp-admin/admin.php?page=pbar-6310-progress-bar-manage-items1,2064.0097.9037.57
Import/Export Plugin /wp-admin/admin.php?page=pbar-6310-progress-bar-import-export1,1853.9752.2528.44
Template 01-10 /wp-admin/admin.php?page=pbar-6310-template-01-102,2508.47178.35160.74
Template 21-30 /wp-admin/admin.php?page=pbar-6310-template-21-302,2258.33170.88128.05
WpMart Plugins /wp-admin/admin.php?page=pbar-6310-wpmart-plugins1,0302.7440.3632.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_pbar_6310_style
    • wp_pbar_6310_item
  • Zombie WordPress options were found after uninstall: 7 options
    • pbar_6310_version_info
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/progress-skill-bar/settings/helper/tab-menu.php
  • 147× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-skill-bar/settings/helper/_helper-14.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-skill-bar/settings/templates/template-16.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-skill-bar/settings/templates/template-30.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-skill-bar/settings/css/_css-02.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-skill-bar/output/css/_css-02.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/progress-skill-bar/settings/form/_form-13.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-skill-bar/settings/css/_css-01.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-skill-bar/settings/helper/_helper-13.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-skill-bar/settings/templates/template-04.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/progress-skill-bar/settings/helper/_helper-15.php:33

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=pbar-6310-template-11-20
    • > Network (severe)
    https://files.wallpaperpass.com/2019/09/8k%20wallpaper%20041%20-%205120x2880.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Progress Bar Template 01-10), #2 (Progress Bar Template 11-20), #3 (Progress Bar Template 21-30)
You can look at the official readme.txt

progress-skill-bar/index.php 92% from 13 tests

The main PHP script in "Progress Skill Bar" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("progress-skill-bar.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin18,169 lines of code in 157 files:
LanguageFilesBlank linesComment linesLines of code
PHP14585241613,133
CSS6166484,381
JavaScript64528655

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/fs-sprite.png1.07KB0.18KB▼ 82.82%
assets/css/jquery.minicolors.png67.02KB34.31KB▼ 48.80%
assets/css/hover.png1.27KB0.66KB▼ 48.23%