84% easy-progressbar

Code Review | Easy ProgressBar

WordPress plugin Easy ProgressBar scored84%from 54 tests.

About plugin

  • Plugin page: easy-progressbar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 10, 2021
  • Latest release: Mar 10, 2021
  • Number of updates: 2
  • Update frequency: every 17.5 days
  • Top authors: merajali294 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.73ms] Passed 4 tests

This is a short check of server-side resources used by Easy ProgressBar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.35 ▲0.07
Dashboard /wp-admin3.35 ▼0.0048.47 ▼13.70
Posts /wp-admin/edit.php3.40 ▲0.0447.87 ▼0.17
Add New Post /wp-admin/post-new.php5.95 ▲0.0581.23 ▼17.77
Media Library /wp-admin/upload.php3.27 ▲0.0334.62 ▼7.26
Easy ProgressBar /wp-admin/options-general.php?page=easy-progressbar-settings3.2129.02

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy ProgressBar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15813.51 ▼0.8510.41 ▲8.6145.63 ▲3.89
Dashboard /wp-admin2,220 ▲425.81 ▲0.2097.43 ▼1.1641.54 ▼3.13
Posts /wp-admin/edit.php2,106 ▲62.48 ▲0.5234.53 ▼2.2734.49 ▼0.93
Add New Post /wp-admin/post-new.php1,552 ▲2623.39 ▲0.30654.32 ▼8.3035.66 ▼21.87
Media Library /wp-admin/upload.php1,423 ▲264.22 ▼0.0291.71 ▼24.2241.14 ▼5.89
Easy ProgressBar /wp-admin/options-general.php?page=easy-progressbar-settings1,0702.5846.3126.56

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=easy-progressbar-settings
    • > Notice in wp-content/plugins/easy-progressbar/easy-progressbar.php+119
    Trying to access array offset on value of type bool

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: scroll, easy, progress, read, progressbar

easy-progressbar/easy-progressbar.php 85% from 13 tests

The principal PHP file in "Easy ProgressBar" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Git Repository: An alternative Git repository was detected
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

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 detected196 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP11723116
JavaScript34951
CSS20029

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin