90% progress-bars

Code Review | Progress Bars

WordPress plugin Progress Bars scored90%from 54 tests.

About plugin

  • Plugin page: progress-bars
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Jul 29, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 14
  • Update frequency: every 69.6 days
  • Top authors: wpdevteam (78.57%)Asif2BD (21.43%)re_enter_rupok (14.29%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /7,289 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.03MB] [CPU: ▼8.67ms] Passed 4 tests

An overview of server-side resources used by Progress Bars
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.07 ▲0.35
Dashboard /wp-admin3.33 ▼0.0247.31 ▼12.96
Posts /wp-admin/edit.php3.44 ▲0.0948.87 ▲0.38
Add New Post /wp-admin/post-new.php5.93 ▲0.0581.67 ▼22.43
Media Library /wp-admin/upload.php3.25 ▲0.0237.87 ▲2.29

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Progress Bars
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.32 ▼1.434.36 ▲2.5842.50 ▼4.58
Dashboard /wp-admin2,203 ▲125.84 ▲0.9695.12 ▼4.1438.68 ▼4.98
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0339.47 ▲1.5934.34 ▲5.33
Add New Post /wp-admin/post-new.php1,661 ▲14223.26 ▼0.09573.23 ▼104.2335.72 ▼15.08
Media Library /wp-admin/upload.php1,388 ▲64.17 ▼0.1695.07 ▼4.0442.71 ▼2.59

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt is a good inspiration

progress-bars/progress-bars.php Passed 13 tests

The main PHP script in "Progress Bars" version 1.2.6 is automatically included on every request by WordPress
56 characters long description:
Make your website interactive with stunning progress bar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected771 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP10105164693
JavaScript511466
JSON1009
CSS3163

PHP code Passed 2 tests

Analyzing 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.62
Average class complexity32.40
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants3100.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
No PNG files were detected