83% sv-disper-bar

Code Review | SV Discount Progress Bar

WordPress plugin SV Discount Progress Bar scored83%from 54 tests.

About plugin

  • Plugin page: sv-disper-bar
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: Jan 20, 2021
  • Latest release: May 15, 2022
  • Number of updates: 21
  • Update frequency: every 22.9 days
  • Top authors: ketovpavel (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /653 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.43ms] Passed 4 tests

This is a short check of server-side resources used by SV Discount Progress Bar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.22 ▼2.48
Dashboard /wp-admin3.31 ▲0.0143.72 ▼2.79
Posts /wp-admin/edit.php3.36 ▲0.0044.26 ▼3.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0089.09 ▼2.00
Media Library /wp-admin/upload.php3.24 ▲0.0032.32 ▼5.03

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for SV Discount Progress Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.19 ▼1.561.56 ▼0.1438.11 ▼2.12
Dashboard /wp-admin2,220 ▲355.77 ▲0.8897.04 ▼6.0138.91 ▼4.87
Posts /wp-admin/edit.php2,103 ▲142.06 ▲0.0643.10 ▲6.9137.20 ▲1.13
Add New Post /wp-admin/post-new.php1,523 ▼017.70 ▼5.57650.72 ▲27.9267.07 ▲14.59
Media Library /wp-admin/upload.php1,399 ▲84.24 ▲0.0794.60 ▼0.6442.83 ▲0.54

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
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | 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
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Front.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Options.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Functions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Processing_Fields.php:3

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


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in sv-disper-bar/assets to your readme.txt
The official readme.txt is a good inspiration

sv-disper-bar/sv-disper-bar.php 85% from 13 tests

The principal PHP file in "SV Discount Progress Bar" v. 1.2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 228 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Success! There were no dangerous files found in this plugin1,879 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PO File15976138

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.31
Average class complexity12.82
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
▷ Static methods1317.11%
▷ Public methods7598.68%
▷ Protected methods00.00%
▷ Private methods11.32%
▷ Named functions888.89%
▷ Anonymous functions111.11%
▷ Global constants8100.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
PNG images were not found in this plugin