90% responsive-progress-bar

Code Review | Responsive Progress Bar

WordPress plugin Responsive Progress Bar scored90%from 54 tests.

About plugin

  • Plugin page: responsive-progre...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Jan 31, 2021
  • Number of updates: 13
  • Update frequency: every 204.3 days
  • Top authors: Rene Puchinger (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /7,139 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼7.24ms] Passed 4 tests

A check of server-side resources used by Responsive Progress Bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.16 ▼7.36
Dashboard /wp-admin3.31 ▲0.0147.29 ▼1.45
Posts /wp-admin/edit.php3.36 ▲0.0152.03 ▲0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.80 ▼18.10
Media Library /wp-admin/upload.php3.24 ▲0.0137.02 ▼2.05

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Responsive Progress Bar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16213.59 ▼0.795.58 ▲3.7443.22 ▼1.08
Dashboard /wp-admin2,224 ▲245.86 ▼0.1799.32 ▼1.8238.09 ▼3.12
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0240.46 ▲4.7534.15 ▼1.30
Add New Post /wp-admin/post-new.php1,554 ▲2818.17 ▲0.46611.80 ▼30.7153.87 ▼0.63
Media Library /wp-admin/upload.php1,403 ▼04.25 ▲0.02100.64 ▼2.4043.63 ▼0.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Responsive Progress Bar in action), #2 (Using the shortcode in WordPress editor)
The official readme.txt is a good inspiration

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

This is the main PHP file of "Responsive Progress Bar" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Shortcode for displaying a responsive configurable progress bar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected75 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1162535
CSS14123
JavaScript19117

PHP code Passed 2 tests

A brief analysis 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 complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.17KB10.10KB▼ 62.84%
screenshot-2.png27.70KB10.94KB▼ 60.49%