94% loading-bar

Code Review | Loading Bar

WordPress plugin Loading Bar scored 94% from 54 tests.

About plugin

  • Plugin page: loading-bar
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.6
  • WordPress version: 5.8.1
  • First release: Aug 5, 2015
  • Latest release: Aug 21, 2016
  • Number of updates: 10
  • Update frequency: every 38.3 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active / 8,514 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Loading Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1323.54 ▲2.76
Dashboard /wp-admin3.07 ▲0.0132.18 ▼4.42
Posts /wp-admin/edit.php3.13 ▲0.0231.83 ▲1.17
Add New Post /wp-admin/post-new.php5.44 ▼0.0070.23 ▼586.52
Media Library /wp-admin/upload.php3.02 ▲0.0222.71 ▲1.13

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Loading Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7516.10 ▲0.468.22 ▲2.9977.85 ▼2.41
Dashboard /wp-admin2,933 ▲386.12 ▼0.04115.14 ▼25.03168.57 ▼4.70
Posts /wp-admin/edit.php2,740 ▲33.23 ▼0.0062.43 ▼2.17132.97 ▼7.11
Add New Post /wp-admin/post-new.php3,813 ▲16819.23 ▲1.03475.69 ▲50.44160.90 ▲8.88
Media Library /wp-admin/upload.php1,752 ▼05.50 ▲0.00145.45 ▼1.96182.40 ▼1.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/loading-bar/loading-bar.php
    • > /wp-content/plugins/loading-bar/setting.php
    • > /wp-content/plugins/loading-bar/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
The official readme.txt might help

loading-bar/loading-bar.php Passed 13 tests

The primary PHP file in "Loading Bar" version 1.0.0 is used by WordPress to initiate all plugin functionality
125 characters long description:
Add loading bar to your website easily, like youtube loading bar! just one click and custom loading bar color and responsive.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin174 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

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.30
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 functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin