Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼149.94ms] Passed 4 tests
An overview of server-side resources used by TL;DR - Smart Reading Timer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 40.80 ▲18.85 |
Dashboard /wp-admin | 3.07 ▲0.02 | 49.99 ▼0.96 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 46.06 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 98.84 ▼589.57 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 35.46 ▼7.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for TL;DR - Smart Reading Timer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 16.02 ▲0.18 | 9.66 ▲0.20 | 49.85 ▼6.71 |
Dashboard /wp-admin | 2,990 ▲56 | 5.89 ▼0.19 | 148.92 ▼2.88 | 114.45 ▼10.84 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.69 ▼0.00 | 72.28 ▲4.35 | 101.85 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 19.18 ▲0.72 | 389.67 ▼9.46 | 119.37 ▼1.35 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.02 ▲0.01 | 159.61 ▼5.27 | 128.24 ▼4.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/tldr-smart-reading-timer/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tldr-smart-reading-timer/dashboard.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tldr-smart-reading-timer/filters.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tldr-smart-reading-timer/TLDR.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Requires at least: Invalid version format
tldr-smart-reading-timer/TLDR.php 85% from 13 tests
Analyzing the main PHP file in "TL;DR - Smart Reading Timer" version 0.0.2
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("tldr-smart-reading-timer.php" instead of "TLDR.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected153 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 54 | 23 | 151 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin