Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/post-reading-progress/includes/ReadingProgress.php+39
Undefined index: options
Server metrics [RAM: ▼1.81MB] [CPU: ▼52.88ms] Passed 4 tests
This is a short check of server-side resources used by Post Reading Progress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.28 | 6.69 ▼34.31 |
Dashboard /wp-admin | 2.21 ▼1.14 | 8.82 ▼54.74 |
Posts /wp-admin/edit.php | 2.21 ▼1.15 | 8.95 ▼35.92 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 9.49 ▼86.54 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 6.99 ▼30.14 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 14 new options
New WordPress options |
---|
wordpress-reading-bar-foreground |
wordpress-reading-bar-position |
wordpress-reading-bar-background |
widget_recent-posts |
can_compress_scripts |
wordpress-reading-bar-enable-plugin |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
wordpress-reading-bar-autohide |
... |
Browser metrics Passed 4 tests
Post Reading Progress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.25 ▼1.11 | 2.01 ▲0.30 | 43.70 ▲1.87 |
Dashboard /wp-admin | 2,206 ▲21 | 5.90 ▲1.03 | 113.00 ▼7.36 | 43.78 ▼2.32 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.99 ▼0.03 | 34.23 ▼2.21 | 32.28 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 23.55 ▲6.11 | 676.33 ▼8.50 | 63.25 ▲1.85 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.26 ▲0.03 | 93.53 ▼13.71 | 41.78 ▼7.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/post-reading-progress/includes/ReadingProgress.php+39
Undefined index: options
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: reading, progressbar, animated, progress, scroll...
post-reading-progress/post-reading-progress.php Passed 13 tests
The main PHP script in "Post Reading Progress" version 1.1.2 is automatically included on every request by WordPress
57 characters long description:
Add reading progress bar on top or bottom of single post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin834 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 150 | 179 | 788 |
PO File | 1 | 11 | 13 | 41 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 12.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 2 | 28.57% |
Methods | 48 | |
▷ Static methods | 5 | 10.42% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.33% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin