Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.00ms] Passed 4 tests
Analyzing server-side resources used by Tidy Output
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.58 ▲2.87 |
Dashboard /wp-admin | 3.32 ▲0.02 | 55.42 ▲7.78 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.67 ▲0.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.53 ▼15.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.46 ▲0.59 |
Tidy Output /wp-admin/options-general.php?page=tidyoutput | 3.25 | 31.44 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Tidy Output: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.12 | 1.75 ▲0.11 | 43.40 ▼0.70 |
Dashboard /wp-admin | 2,196 ▲19 | 5.58 ▲0.04 | 94.56 ▲6.84 | 42.81 ▲4.00 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.06 | 32.65 ▼10.22 | 38.20 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.44 ▲0.36 | 689.60 ▲62.13 | 50.80 ▲1.31 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.21 ▲0.04 | 97.43 ▼1.35 | 43.92 ▼1.02 |
Tidy Output /wp-admin/options-general.php?page=tidyoutput | 1,155 | 2.04 | 23.25 | 27.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/tidyoutput/views/settings_form.js.php
- 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tidyoutput/views/fields/boolean.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/tidyoutput/tests/test_extra_indent.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/tidyoutput/tests/test_template.php:32
- > PHP Notice
Undefined variable: field in wp-content/plugins/tidyoutput/views/fields/boolean.php on line 5
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/tidyoutput/tests/bootstrap.php on line 8
- > PHP Notice
Undefined variable: options in wp-content/plugins/tidyoutput/views/fields/boolean.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/tidyoutput/views/fields/select.php:1
- > PHP Notice
Undefined variable: field in wp-content/plugins/tidyoutput/views/fields/boolean.php on line 5
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/tidyoutput/tests/bootstrap.php on line 8
- > PHP Warning
array_walk() expects parameter 1 to be array, null given in wp-content/plugins/tidyoutput/views/fields/range.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: html sanitization, cleanup, formatting
tidyoutput/tidyoutput.php Passed 13 tests
The main PHP script in "Tidy Output" version 1.0.2 is automatically included on every request by WordPress
40 characters long description:
A plugin designed to cleanup HTML output
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
Good job! No executable or dangerous file extensions detected1,417 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 358 | 515 | 1,083 |
PO File | 2 | 44 | 36 | 199 |
Bourne Shell | 1 | 20 | 6 | 94 |
YAML | 1 | 6 | 0 | 18 |
XML | 1 | 0 | 0 | 14 |
Markdown | 1 | 3 | 0 | 9 |
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.23 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 4 | 5.48% |
▷ Public methods | 69 | 94.52% |
▷ Protected methods | 4 | 5.48% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 17 | |
▷ Global constants | 1 | 5.88% |
▷ Class constants | 16 | 94.12% |
▷ Public constants | 16 | 100.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
PNG images were not found in this plugin