Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.12MB] [CPU: ▼12.05ms] Passed 4 tests
A check of server-side resources used by Tidy.ro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.63 ▲0.96 |
Dashboard /wp-admin | 3.26 ▼0.09 | 35.14 ▼29.04 |
Posts /wp-admin/edit.php | 3.32 ▼0.04 | 46.47 ▼2.91 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.38 | 83.72 ▼13.62 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.21 ▼2.62 |
Statistics /wp-admin/admin.php?page=tidy-statistics | 3.23 | 30.84 |
tidy.ro /wp-admin/admin.php?page=tidy | 3.23 | 35.09 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_tidy_connections |
New WordPress options |
---|
widget_recent-comments |
td_atc_settings |
can_compress_scripts |
td_current_version |
td_message |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Tidy.ro
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲149 | 13.11 ▼1.07 | 4.91 ▲3.02 | 33.51 ▼14.58 |
Dashboard /wp-admin | 2,279 ▲94 | 5.80 ▼0.06 | 106.33 ▼2.76 | 71.85 ▲26.22 |
Posts /wp-admin/edit.php | 2,172 ▲80 | 2.14 ▲0.15 | 40.20 ▼1.56 | 40.27 ▲5.18 |
Add New Post /wp-admin/post-new.php | 1,584 ▲51 | 23.29 ▲0.06 | 704.71 ▲23.81 | 56.79 ▼0.06 |
Media Library /wp-admin/upload.php | 1,461 ▲73 | 4.14 ▼0.07 | 102.84 ▼4.38 | 78.97 ▲33.31 |
Statistics /wp-admin/admin.php?page=tidy-statistics | 832 | 2.02 | 24.69 | 29.59 |
tidy.ro /wp-admin/admin.php?page=tidy | 840 | 2.03 | 28.58 | 31.82 |
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
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_tidy_connections
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- td_message
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- td_current_version
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
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tidy
- > Notice in wp-content/plugins/tidyro/tidy.php+62
Undefined variable: answer
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tidy
- > Notice in wp-content/plugins/tidyro/tidy.php+62
Trying to get property 'message' of non-object
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
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tidyro/tabs/main.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tidyro/tidy.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tidyro/tabs/statistics.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tidy
- > Network (severe)
wp-content/plugins/tidy/chart/Chart.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tidy
- > Network (severe)
wp-content/plugins/tidy/icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== tidyro ===
)
tidyro/tidy.php 92% from 13 tests
This is the main PHP file of "Tidy.ro" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("tidyro.php" instead of "tidy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected6,864 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 998 | 737 | 4,970 |
Markdown | 10 | 328 | 0 | 902 |
PHP | 3 | 412 | 27 | 664 |
HTML | 6 | 39 | 0 | 298 |
JSON | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 1.54KB | 0.69KB | ▼ 55.37% |
assets/screenshot-1.png | 39.46KB | 18.28KB | ▼ 53.68% |
correct.png | 2.62KB | 1.37KB | ▼ 47.50% |
assets/screenshot-2.png | 160.65KB | 71.83KB | ▼ 55.29% |
transparent_bg.png | 0.90KB | 0.09KB | ▼ 89.71% |