Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.80ms] Passed 4 tests
A check of server-side resources used by Reading Time
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.93 ▲1.41 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.27 ▼6.29 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.92 ▼4.78 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.02 ▲2.90 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.22 ▲2.47 |
Reading Time /wp-admin/options-general.php?page=reading_time_options | 3.21 | 32.69 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
reading_time |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Reading Time: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲7 | 14.67 ▲0.81 | 1.57 ▼0.23 | 37.20 ▼1.31 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▼0.07 | 85.60 ▼8.63 | 38.72 ▼2.83 |
Posts /wp-admin/edit.php | 2,083 ▼17 | 1.99 ▲0.05 | 36.58 ▼5.66 | 35.17 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.10 ▼0.68 | 652.49 ▼31.09 | 52.44 ▼1.78 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▼0.09 | 98.72 ▼2.48 | 41.65 ▼6.01 |
Reading Time /wp-admin/options-general.php?page=reading_time_options | 967 | 1.99 | 25.88 | 31.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- reading_time
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/reading-time/uninstall.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reading-time/reading_time.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Requires at least: Version format is invalid
- Screenshots: Screenshot #1 (Sample content with the progress bar almost filled) image not found
reading-time/reading_time.php 85% from 13 tests
Analyzing the main PHP file in "Reading Time" version 1.2.20
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("reading-time.php" instead of "reading_time.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected177 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 47 | 31 | 177 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 1.53KB | 0.45KB | ▼ 70.46% |