84% loading-bar

Code Review | Loading Bar

WordPress plugin Loading Bar scored84%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: 6.3.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,801 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Loading Bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.74 ▲2.69
Dashboard /wp-admin3.32 ▲0.0251.79 ▼4.75
Posts /wp-admin/edit.php3.37 ▲0.0253.47 ▲0.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.09 ▼0.79
Media Library /wp-admin/upload.php3.24 ▲0.0238.03 ▼0.42

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Loading Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.35 ▼0.254.96 ▲3.4345.29 ▲5.43
Dashboard /wp-admin2,195 ▲155.64 ▲0.0489.90 ▼4.5140.87 ▲1.16
Posts /wp-admin/edit.php2,097 ▼61.98 ▼0.0240.57 ▼1.0337.54 ▲1.19
Add New Post /wp-admin/post-new.php1,526 ▼023.51 ▲0.06626.16 ▼18.1548.27 ▼5.69
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.16104.05 ▼8.1545.66 ▼0.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/loading-bar/setting.php
    • > /wp-content/plugins/loading-bar/loading-bar.php
    • > /wp-content/plugins/loading-bar/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin174 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12218107
PHP4452767

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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