Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼11.43ms] Passed 4 tests
This is a short check of server-side resources used by Read Meter - Reading Time & Progress Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 38.09 ▼3.85 |
Dashboard /wp-admin | 3.50 ▲0.16 | 47.27 ▼17.80 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 50.16 ▲4.61 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 86.40 ▼25.33 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 38.07 ▲1.26 |
Read Meter /wp-admin/options-general.php?page=bsf_rt | 3.42 | 34.26 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
bsf_rt_progress_bar_settings |
can_compress_scripts |
theysaidso_admin_options |
bsf_rt_general_settings |
bsf_rt_read_time_settings |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Read Meter - Reading Time & Progress Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.69 ▼0.72 | 1.63 ▼0.27 | 39.76 ▼4.32 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▲0.01 | 107.13 ▲1.53 | 37.37 ▼6.36 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.05 ▲0.04 | 33.69 ▼3.52 | 35.81 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 22.97 ▲5.27 | 661.95 ▼110.43 | 62.87 ▲10.93 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.25 ▼0.01 | 95.94 ▼13.42 | 42.91 ▼3.07 |
Read Meter /wp-admin/options-general.php?page=bsf_rt | 893 | 2.19 | 26.66 | 25.40 |
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
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- bsf_rt_read_time_settings
- bsf_rt_general_settings
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- bsf_rt_progress_bar_settings
- widget_recent-comments
- 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/read-meter/includes/bsf-rt-user-manual.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/read-meter/includes/bsf-rt-progress-bar-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/read-meter/classes/class-bsfrt-readtime.php:88
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/read-meter/classes/class-bsfrt-loader.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/read-meter/includes/bsf-rt-read-time-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/read-meter/includes/bsf-rt-main-frontend.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/read-meter/includes/bsf-rt-page.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/read-meter/bsf-readtime.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/read-meter/includes/bsf-rt-general-settings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: readtime, progressbar
read-meter/bsf-readtime.php 85% from 13 tests
"Read Meter - Reading Time & Progress Bar" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("read-meter.php" instead of "bsf-readtime.php")
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
Everything looks great! No dangerous files found in this plugin1,688 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 511 | 400 | 1,459 |
JavaScript | 6 | 78 | 5 | 165 |
CSS | 5 | 17 | 4 | 64 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 93.50 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin