Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/post-read-time/post-read-time.php+56
Undefined property: PRT_Admin::$plugin_version
Server metrics [RAM: ▼1.93MB] [CPU: ▼49.08ms] Passed 4 tests
This is a short check of server-side resources used by Post Read Time
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.50 ▼30.25 |
Dashboard /wp-admin | 2.08 ▼1.22 | 8.20 ▼39.41 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 7.40 ▼38.44 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.73 ▼88.23 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.18 ▼27.96 |
Post Read Time /wp-admin/options-general.php?page=post-read-time | 2.08 | 6.46 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
post-read-time_options |
Browser metrics Passed 4 tests
Post Read Time: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.53 ▼1.11 | 1.60 ▼0.08 | 40.08 ▼1.41 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.92 | 99.36 ▼8.10 | 43.21 ▼0.42 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.05 | 39.92 ▲2.64 | 34.05 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,540 ▲19 | 22.83 ▼0.35 | 618.40 ▼54.53 | 60.52 ▲2.59 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.22 ▲0.04 | 98.04 ▲2.32 | 42.12 ▲1.03 |
Post Read Time /wp-admin/options-general.php?page=post-read-time | 1,000 | 2.06 | 25.47 | 32.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/post-read-time/post-read-time.php+56
Undefined property: PRT_Admin::$plugin_version
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- post-read-time_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=post-read-time
- > Notice in wp-content/plugins/post-read-time/post-read-time.php+56
Undefined property: PRT_Admin::$plugin_version
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
4 plugin tags: words per minute, post read time, time to read, reading time
post-read-time/post-read-time.php Passed 13 tests
The main PHP file in "Post Read Time" ver. 1.2.6 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Calculate and add reading time in minute to posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin441 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 99 | 115 | 312 |
PO File | 1 | 33 | 34 | 107 |
CSS | 1 | 2 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 4.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin