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
Installer ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼9.03ms] Passed 4 tests
An overview of server-side resources used by Distraction Free Writing mode Themes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.88 ▼0.15 |
Dashboard /wp-admin | 3.34 ▲0.00 | 44.23 ▼11.71 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.42 ▲1.80 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.41 | 76.80 ▼25.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.83 ▲0.96 |
DFWM Themes /wp-admin/options-general.php?page=dfwmdt | 3.25 | 30.52 |
Server storage [IO: ▲2.03MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options |
---|
dfwmt_custom_theme_css |
dfwmt_selected_theme |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Distraction Free Writing mode Themes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.60 ▼0.78 | 1.73 ▲0.02 | 41.85 ▼2.34 |
Dashboard /wp-admin | 2,213 ▲24 | 5.88 ▲0.89 | 106.25 ▼3.53 | 43.75 ▼0.13 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.98 ▼0.02 | 39.17 ▲4.85 | 34.14 ▲2.34 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.29 ▲0.17 | 583.40 ▼9.33 | 53.73 ▼4.80 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.21 ▲0.11 | 94.71 ▼5.74 | 42.09 ▼1.44 |
DFWM Themes /wp-admin/options-general.php?page=dfwmdt | 929 | 2.07 | 22.71 | 26.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- dfwmt_custom_theme_css
- dfwmt_selected_theme
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=dfwmdt
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=dfwmdt
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/distraction-free-writing-mode-themes/templates/force_dfwm_js.php
- > /wp-content/plugins/distraction-free-writing-mode-themes/templates/admin/css/default-custom-css.php
- > /wp-content/plugins/distraction-free-writing-mode-themes/templates/admin/js-popup.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/distraction-free-writing-mode-themes/templates/admin/fields/custom_theme_css.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_names() on null in wp-content/plugins/distraction-free-writing-mode-themes/templates/admin/fields/force_roles.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_user_option() in wp-content/plugins/distraction-free-writing-mode-themes/templates/user/fields/user_theme_field.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/distraction-free-writing-mode-themes/templates/admin/fields/selected_theme.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/distraction-free-writing-mode-themes/templates/user/fields/user_force_dfwmt.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/distraction-free-writing-mode-themes/templates/admin/main.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/distraction-free-writing-mode-themes/distraction-free-writing-mode-themes.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/distraction-free-writing-mode-themes/templates/user/user_theme_selection.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/distraction-free-writing-mode-themes/templates/admin/footer.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
3 plugin tags: dark theme, themes, editor
distraction-free-writing-mode-themes/distraction-free-writing-mode-themes.php 92% from 13 tests
The entry point to "Distraction Free Writing mode Themes" version 3.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- 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 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin746 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 85 | 120 | 369 |
CSS | 8 | 37 | 16 | 226 |
PO File | 2 | 60 | 74 | 151 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 1.70MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/matrix/preview.png | 62.72KB | 43.60KB | ▼ 30.48% |
css/pearl/paper_fibers.png | 72.36KB | 75.74KB | 0.00% |
css/paper/preview.png | 245.95KB | 133.39KB | ▼ 45.76% |
css/autolycus/preview.png | 170.12KB | 61.29KB | ▼ 63.97% |
css/zenhub/preview.png | 180.91KB | 61.62KB | ▼ 65.94% |