Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲5.93ms] Passed 4 tests
A check of server-side resources used by Theme Structure Visualiser
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.06 | 34.01 ▼8.78 |
Dashboard /wp-admin | 3.33 ▲0.02 | 58.44 ▲12.37 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 66.83 ▲18.16 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 112.08 ▲7.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 50.05 ▲12.24 |
TSV Options /wp-admin/options-general.php?page=theme-structure-visualiser/admin/class-admin-settings.php | 3.22 | 41.62 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Theme Structure Visualiser
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,017 ▲282 | 13.81 ▼0.50 | 6.95 ▲4.87 | 38.30 ▼10.07 |
Dashboard /wp-admin | 2,226 ▲41 | 5.10 ▼0.76 | 103.57 ▲8.09 | 39.34 ▼2.73 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.32 ▲0.34 | 38.08 ▼1.95 | 32.75 ▼3.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 17.47 ▼5.88 | 675.77 ▼10.11 | 37.77 ▼12.41 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.44 ▲0.24 | 98.44 ▼1.02 | 40.86 ▼2.89 |
TSV Options /wp-admin/options-general.php?page=theme-structure-visualiser/admin/class-admin-settings.php | 1,042 | 2.25 | 44.53 | 25.95 |
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 does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: template parts, learning tools, templates, themes
theme-structure-visualiser/theme-structure-visualiser.php 92% from 13 tests
"Theme Structure Visualiser" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected362 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 124 | 310 | 209 |
JavaScript | 5 | 11 | 5 | 117 |
JSON | 1 | 0 | 0 | 27 |
XML | 1 | 6 | 5 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.50MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
org-assets/banner-772x250.png | 60.81KB | 20.39KB | ▼ 66.48% |
org-assets/screenshot-2.png | 57.19KB | 19.71KB | ▼ 65.53% |
org-assets/banner-1544x500.png | 147.38KB | 45.92KB | ▼ 68.84% |
org-assets/icon-128x128.png | 1.96KB | 0.75KB | ▼ 61.64% |
org-assets/icon-256x256.png | 3.88KB | 1.07KB | ▼ 72.47% |