Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼145.30ms] Passed 4 tests
This is a short check of server-side resources used by Simple Reading Progress Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 42.03 ▲11.01 |
Dashboard /wp-admin | 3.11 ▲0.05 | 58.69 ▲7.31 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 53.44 ▼3.36 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 102.81 ▼580.14 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 39.40 ▼5.02 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Simple Reading Progress Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,863 ▲291 | 16.52 ▲0.52 | 15.43 ▲3.05 | 51.47 ▲3.24 |
Dashboard /wp-admin | 2,986 ▲52 | 6.79 ▲0.86 | 158.03 ▼29.50 | 119.31 ▼1.96 |
Posts /wp-admin/edit.php | 2,772 ▲33 | 3.03 ▲0.31 | 89.99 ▲15.69 | 100.97 ▲11.41 |
Add New Post /wp-admin/post-new.php | 1,706 ▲125 | 18.58 ▲1.02 | 443.65 ▼47.57 | 112.87 ▼20.60 |
Media Library /wp-admin/upload.php | 1,840 ▲33 | 5.42 ▲0.40 | 146.29 ▼29.47 | 130.80 ▼6.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-reading-progress-bar/simple-reading-progress-bar.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: readability, reading, progress bar
simple-reading-progress-bar/simple-reading-progress-bar.php Passed 13 tests
"Simple Reading Progress Bar" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
A simple and easy to custom progress bar at the top of your posts.
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
There were no executable files found in this plugin249 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 42 | 167 | 218 |
JavaScript | 2 | 4 | 2 | 19 |
CSS | 1 | 2 | 0 | 10 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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