Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.25MB] [CPU: ▼17.47ms] Passed 4 tests
Analyzing server-side resources used by Article Read Time - WordPress plugin for displaying total reading time and progress bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.73 ▼8.35 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.51 ▲0.07 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.65 ▲3.71 |
Add New Post /wp-admin/post-new.php | 4.68 ▼1.21 | 43.41 ▼61.57 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.59 ▼0.02 |
Progress Bar /wp-admin/admin.php?page=artl-progress-bar | 3.30 | 33.45 |
Article Read Time Lite Settings /wp-admin/admin.php?page=article-read-time-lite | 3.34 | 35.19 |
About /wp-admin/admin.php?page=artl-about | 3.28 | 31.71 |
Help /wp-admin/admin.php?page=artl-help | 3.27 | 31.20 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Article Read Time - WordPress plugin for displaying total reading time and progress bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲149 | 13.60 ▼0.78 | 5.89 ▲3.44 | 42.65 ▼2.05 |
Dashboard /wp-admin | 2,241 ▲53 | 5.79 ▼0.06 | 102.82 ▼12.22 | 39.62 ▼0.96 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▼0.04 | 41.56 ▲1.89 | 36.51 ▲3.18 |
Add New Post /wp-admin/post-new.php | 1,561 ▲19 | 23.22 ▲4.62 | 649.91 ▼9.64 | 52.53 ▼2.68 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.24 ▲0.04 | 96.70 ▼6.63 | 40.13 ▼2.66 |
Progress Bar /wp-admin/admin.php?page=artl-progress-bar | 1,237 | 2.30 | 63.65 | 50.41 |
Article Read Time Lite Settings /wp-admin/admin.php?page=article-read-time-lite | 1,219 | 1.99 | 40.65 | 43.76 |
About /wp-admin/admin.php?page=artl-about | 925 | 1.90 | 26.57 | 29.13 |
Help /wp-admin/admin.php?page=artl-help | 876 | 1.90 | 28.20 | 29.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 13 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=article-read-time-lite
- > Notice in wp-content/plugins/article-read-time-lite/includes/views/boxes/layout-settings.php+177
Trying to access array offset on value of type bool
- 13 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=article-read-time-lite
- > Notice in wp-content/plugins/article-read-time-lite/includes/views/boxes/layout-settings.php+177
Trying to access array offset on value of type null
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
- 14× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/article-read-time-lite/includes/views/backend/help.php
- > /wp-content/plugins/article-read-time-lite/includes/views/frontend/posthtml.php
- > /wp-content/plugins/article-read-time-lite/includes/cores/artl-block.php
- > /wp-content/plugins/article-read-time-lite/article-read-time-lite.php
- > /wp-content/plugins/article-read-time-lite/includes/views/backend/progress-bar-settings.php
- > /wp-content/plugins/article-read-time-lite/includes/views/backend/settings.php
- > /wp-content/plugins/article-read-time-lite/includes/cores/progress-bar-customize.php
- > /wp-content/plugins/article-read-time-lite/includes/cores/artl-paragraph.php
- > /wp-content/plugins/article-read-time-lite/includes/views/boxes/about.php
- > /wp-content/plugins/article-read-time-lite/includes/views/boxes/basic-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: read time, posts, time, reading time, characters count...
article-read-time-lite/article-read-time-lite.php 92% from 13 tests
This is the main PHP file of "Article Read Time - WordPress plugin for displaying total reading time and progress bar" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.2.4" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,854 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 86 | 21 | 873 |
PHP | 15 | 214 | 34 | 844 |
JavaScript | 2 | 48 | 15 | 106 |
SVG | 3 | 0 | 0 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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 | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.76MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/template-paragraph/template-1.png | 148.93KB | 78.84KB | ▼ 47.06% |
images/template-block/template-2.png | 228.01KB | 124.09KB | ▼ 45.58% |
images/template-paragraph/template-2.png | 150.31KB | 79.48KB | ▼ 47.12% |
images/template-block/template-1.png | 226.22KB | 123.59KB | ▼ 45.37% |
images/paragraphicon.png | 7.31KB | 4.43KB | ▼ 39.36% |