Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.65MB] [CPU: ▲25.67ms] Passed 4 tests
Analyzing server-side resources used by Reader Mode - Distraction-Free Content Reader
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.49 ▲5.03 | 62.30 ▲22.98 |
Dashboard /wp-admin | 8.51 ▲5.21 | 73.25 ▲25.65 |
Posts /wp-admin/edit.php | 8.51 ▲5.16 | 82.53 ▲33.00 |
Add New Post /wp-admin/post-new.php | 9.10 ▲3.22 | 119.79 ▲25.67 |
Media Library /wp-admin/upload.php | 8.51 ▲5.28 | 63.94 ▲28.39 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.51 | 58.44 |
Server storage [IO: ▲4.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 283 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_gdpr |
reader_mode_version |
can_compress_scripts |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-comments |
fs_active_plugins |
theysaidso_admin_options |
db_upgraded |
fs_accounts |
... |
Browser metrics Passed 4 tests
Reader Mode - Distraction-Free Content Reader: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,179 ▲444 | 24.39 ▲11.15 | 49.07 ▲44.46 | 28.70 ▼10.09 |
Dashboard /wp-admin | 2,329 ▲141 | 11.52 ▲6.46 | 146.82 ▲43.02 | 81.21 ▲35.75 |
Posts /wp-admin/edit.php | 2,248 ▲159 | 10.39 ▲8.35 | 80.15 ▲42.06 | 97.60 ▲66.39 |
Add New Post /wp-admin/post-new.php | 1,701 ▲167 | 23.16 ▼0.05 | 499.46 ▼194.80 | 149.59 ▲83.86 |
Media Library /wp-admin/upload.php | 1,593 ▲202 | 11.51 ▲7.37 | 140.47 ▲35.99 | 146.71 ▲95.30 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 1,227 | 9.82 | 68.79 | 100.87 |
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
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/reader-mode/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 11 options
- widget_recent-comments
- db_upgraded
- fs_active_plugins
- fs_debug_mode
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_gdpr
- widget_recent-posts
- fs_accounts
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/reader-mode/includes/views/getting-started/get-pro.php
- > /wp-content/plugins/reader-mode/includes/views/getting-started/basic-usage.php
- > /wp-content/plugins/reader-mode/includes/views/getting-started/what-new.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/reader-mode/plugin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function rm_fs() in wp-content/plugins/reader-mode/includes/views/getting-started/get-pro.php:138
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/reader-mode/includes/views/getting-started/introduction.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/reader-mode/includes/views/getting-started/help.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
reader-mode/plugin.php 85% from 13 tests
"Reader Mode - Distraction-Free Content Reader" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: Use only dashes and lowercase characters for the domain path ("/languages/*")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("reader-mode.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin32,949 lines of code in 210 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 7,664 | 16,216 | 31,876 |
SVG | 66 | 0 | 2 | 855 |
JavaScript | 7 | 34 | 73 | 200 |
CSS | 15 | 0 | 0 | 18 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 81.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 1 | 2.04% |
Methods | 1,170 | |
▷ Static methods | 180 | 15.38% |
▷ Public methods | 828 | 70.77% |
▷ Protected methods | 15 | 1.28% |
▷ Private methods | 327 | 27.95% |
Functions | 110 | |
▷ Named functions | 109 | 99.09% |
▷ Anonymous functions | 1 | 0.91% |
Constants | 131 | |
▷ Global constants | 106 | 80.92% |
▷ Class constants | 25 | 19.08% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
29 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/getting-started/custom-css.png | 1.20KB | 1.27KB | 0.00% |
assets/images/getting-started/customizable.png | 1.38KB | 1.45KB | 0.00% |
assets/images/getting-started/multiple-display-positions.png | 3.55KB | 3.51KB | ▼ 1.10% |
assets/images/getting-started/fullscreen.png | 1.14KB | 1.23KB | 0.00% |
assets/images/getting-started/reading-time.png | 8.45KB | 8.99KB | 0.00% |