Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 23.54 ▲2.76 |
Dashboard /wp-admin | 3.07 ▲0.01 | 32.18 ▼4.42 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 31.83 ▲1.17 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 70.23 ▼586.52 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 22.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,676 ▲75 | 16.10 ▲0.46 | 8.22 ▲2.99 | 77.85 ▼2.41 |
Dashboard /wp-admin | 2,933 ▲38 | 6.12 ▼0.04 | 115.14 ▼25.03 | 168.57 ▼4.70 |
Posts /wp-admin/edit.php | 2,740 ▲3 | 3.23 ▼0.00 | 62.43 ▼2.17 | 132.97 ▼7.11 |
Add New Post /wp-admin/post-new.php | 3,813 ▲168 | 19.23 ▲1.03 | 475.69 ▲50.44 | 160.90 ▲8.88 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.50 ▲0.00 | 145.45 ▼1.96 | 182.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
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 22 | 18 | 107 |
PHP | 4 | 45 | 27 | 67 |
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 code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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