Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼4.42ms] Passed 4 tests
This is a short check of server-side resources used by WP Distraction Free View
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 43.52 ▲5.06 |
Dashboard /wp-admin | 3.56 ▲0.26 | 49.09 ▲0.36 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 46.07 ▼4.34 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 86.84 ▼17.99 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.94 ▲4.28 |
Distraction Free Mode /wp-admin/options-general.php?page=wpdfv_settings | 3.39 | 33.17 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Distraction Free View
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲224 | 13.73 ▼0.68 | 6.31 ▲4.38 | 43.13 ▼0.28 |
Dashboard /wp-admin | 2,234 ▲46 | 5.08 ▼0.82 | 106.31 ▼6.08 | 40.34 ▼3.70 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.32 ▲0.20 | 36.15 ▼0.89 | 34.18 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 22.91 ▼0.43 | 672.63 ▲5.33 | 39.59 ▼20.18 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.50 ▲0.31 | 113.79 ▲15.84 | 46.48 ▲3.05 |
Distraction Free Mode /wp-admin/options-general.php?page=wpdfv_settings | 882 | 1.97 | 26.61 | 27.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDFV\\Admin\\wp_die() in wp-content/plugins/wp-distraction-free-view/src/Admin/Upgrades.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDFV\\Admin\\wp_die() in wp-content/plugins/wp-distraction-free-view/src/Admin/SettingsApi.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: distraction free reading, zen view, fullscreen, fullscreen mode, distraction free...
wp-distraction-free-view/wp-distraction-free-view.php 92% from 13 tests
The main PHP file in "WP Distraction Free View" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,362 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 338 | 652 | 1,195 |
JSON | 1 | 0 | 0 | 157 |
CSS | 4 | 0 | 0 | 4 |
SVG | 4 | 0 | 0 | 4 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 75 | |
▷ Static methods | 22 | 29.33% |
▷ Public methods | 73 | 97.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.67% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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 are no PNG files in this plugin