83% creative-progress-bar

Code Review | Creative Progress Bar

WordPress plugin Creative Progress Bar scored 83% from 54 tests.

About plugin

  • Plugin page: creative-progress...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 7, 2020
  • Latest release: Feb 7, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: rigal-patel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 732 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.97ms] Passed 4 tests

This is a short check of server-side resources used by Creative Progress Bar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.31 ▼5.92
Dashboard /wp-admin3.34 ▲0.0444.81 ▼4.46
Posts /wp-admin/edit.php3.39 ▲0.0448.73 ▼5.60
Add New Post /wp-admin/post-new.php5.94 ▲0.0692.44 ▼7.91
Media Library /wp-admin/upload.php3.26 ▲0.0331.29 ▼3.73
Add New ProgressBar /wp-admin/post-new.php?post_type=cpb_progressbar3.3041.12
ProgressBar /wp-admin/edit.php?post_type=cpb_progressbar3.3136.12

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Creative Progress Bar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲23313.92 ▼0.3310.37 ▲8.5844.64 ▲5.11
Dashboard /wp-admin2,256 ▲655.03 ▼0.04101.94 ▼3.9837.06 ▼10.97
Posts /wp-admin/edit.php2,144 ▲552.33 ▲0.2843.06 ▲2.0135.01 ▼1.53
Add New Post /wp-admin/post-new.php1,562 ▲4818.51 ▲0.92653.73 ▲2.0538.39 ▼7.81
Media Library /wp-admin/upload.php1,444 ▲564.56 ▲0.4099.93 ▼4.4344.12 ▼1.68
Add New ProgressBar /wp-admin/post-new.php?post_type=cpb_progressbar1,7763.3164.2188.83
ProgressBar /wp-admin/edit.php?post_type=cpb_progressbar1,1252.2532.9428.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/creative-progress-bar/admin/partials/creative_progress_bar-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes: You can look at the official readme.txt

creative-progress-bar/creative_progress_bar.php 77% from 13 tests

Analyzing the main PHP file in "Creative Progress Bar" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("creative-progress-bar.php" instead of "creative_progress_bar.php")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: Please don't use more than 140 characters for the plugin description (currently 223 characters long)

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
There were no executable files found in this plugin4,332 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript48693,481
PHP12205656730
CSS31216121

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods42
▷ Static methods716.67%
▷ Public methods3788.10%
▷ Protected methods00.00%
▷ Private methods511.90%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
6 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/progressbar_template4.png11.06KB5.28KB▼ 52.28%
admin/images/progressbar_template2.png16.43KB7.03KB▼ 57.21%
admin/images/progressbar_template1.png16.57KB8.01KB▼ 51.67%
admin/images/progressbar_template6.png9.24KB4.81KB▼ 47.90%
admin/images/progressbar_template5.png11.46KB5.52KB▼ 51.84%