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.01MB] [CPU: ▼1.86ms] Passed 4 tests
An overview of server-side resources used by Mins To Read
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.80 ▼0.73 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.31 ▼1.35 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.25 ▲4.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.04 ▼7.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.42 ▲1.92 |
Mins To Read /wp-admin/options-general.php?page=mins-to-read | 3.26 | 35.75 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mins To Read
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 13.23 ▼1.52 | 2.67 ▲0.69 | 42.86 ▼6.94 |
Dashboard /wp-admin | 2,228 ▲25 | 5.85 ▲0.97 | 100.26 ▼8.76 | 38.39 ▼4.30 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.06 ▲0.06 | 33.85 ▼5.46 | 34.87 ▼4.45 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.00 ▲5.47 | 628.46 ▼61.66 | 61.89 ▼7.58 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.28 ▲0.10 | 103.61 ▼3.70 | 45.91 ▼2.65 |
Mins To Read /wp-admin/options-general.php?page=mins-to-read | 939 | 2.02 | 23.48 | 29.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mins-to-read/mins-to-read.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/mins-to-read/pages/admin-dashboard.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/mins-to-read/includes/admin-dashboard.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: time to read, minutes, blog, calculator, calculation...
mins-to-read/mins-to-read.php Passed 13 tests
"Mins To Read" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
100 characters long description:
Mins To Read is a plugin which calculates the read time of a blog post based on words present in it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,464 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 26 | 0 | 760 |
PHP | 8 | 127 | 60 | 495 |
Sass | 3 | 33 | 0 | 156 |
JavaScript | 1 | 9 | 0 | 35 |
PO File | 1 | 2 | 4 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 12 | 54.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
There are no PNG files in this plugin