83% awesome-progess-bar

Code Review | Awesome Progress Bar

WordPress plugin Awesome Progress Bar scored83%from 54 tests.

About plugin

  • Plugin page: awesome-progess-bar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.8
  • WordPress version: 6.3.1
  • First release: May 17, 2014
  • Latest release: Nov 29, 2018
  • Number of updates: 18
  • Update frequency: every 92.1 days
  • Top authors: nahian91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,685 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.56ms] Passed 4 tests

Analyzing server-side resources used by Awesome Progress Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.02 ▼5.15
Dashboard /wp-admin3.32 ▲0.0142.71 ▼2.50
Posts /wp-admin/edit.php3.37 ▲0.0145.90 ▼2.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.57 ▼19.70
Media Library /wp-admin/upload.php3.24 ▲0.0137.48 ▲3.61

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Progress Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16413.72 ▼0.594.97 ▲3.1742.01 ▼0.88
Dashboard /wp-admin2,205 ▲175.84 ▼0.03100.48 ▼10.3737.42 ▼4.12
Posts /wp-admin/edit.php2,088 ▼42.00 ▼0.0535.46 ▼1.5432.34 ▼5.64
Add New Post /wp-admin/post-new.php1,544 ▲218.18 ▼0.10622.28 ▲0.7065.73 ▲12.23
Media Library /wp-admin/upload.php1,393 ▲54.21 ▲0.0294.22 ▼16.9944.66 ▼2.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-progess-bar/main_progres.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/awesome-progess-bar/main_progres.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 94% 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:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

awesome-progess-bar/main_progres.php 85% from 13 tests

The main PHP script in "Awesome Progress Bar" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-progess-bar.php" instead of "main_progres.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)

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
No dangerous file extensions were detected2 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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