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.03MB] [CPU: ▼0.50ms] Passed 4 tests
A check of server-side resources used by Site Structure Visualizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.54 ▼3.96 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.51 ▼3.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.97 ▲3.71 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 98.46 ▲2.37 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.87 ▲2.87 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Site Structure Visualizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.25 ▼1.00 | 1.61 ▼0.23 | 41.09 ▼7.48 |
Dashboard /wp-admin | 2,216 ▲28 | 5.83 ▼0.07 | 103.47 ▲2.42 | 38.59 ▼3.95 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▲0.03 | 39.10 ▲2.80 | 34.96 ▲4.62 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.32 ▼0.20 | 635.50 ▼56.75 | 53.42 ▼2.48 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.20 ▲0.03 | 101.52 ▲2.28 | 43.18 ▼4.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/site-structure-visualizer/template-parts/view-tabs/tab-tree-view.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
include(): Failed opening 'SSVP_PLUGIN_PATH/includes/SSVP-data-engine.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/site-structure-visualizer/template-parts/SSVP-options-content.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-structure-visualizer/includes/SSVP-api-routes.php:3
- > PHP Warning
include(SSVP_PLUGIN_PATH/includes/SSVP-data-engine.php): failed to open stream: No such file or directory in wp-content/plugins/site-structure-visualizer/template-parts/SSVP-options-content.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/site-structure-visualizer/template-parts/view-tabs/tab-about-us.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/site-structure-visualizer/includes/SSVP-data-engine.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/site-structure-visualizer/template-parts/SSVP-options-content.php:10
- > PHP Warning
Use of undefined constant SSVP_PLUGIN_PATH - assumed 'SSVP_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/site-structure-visualizer/template-parts/SSVP-options-content.php on line 8
- > PHP Warning
Use of undefined constant SSVP_SITE_URL - assumed 'SSVP_SITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/site-structure-visualizer/template-parts/SSVP-options-content.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-structure-visualizer/includes/SSVP-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-structure-visualizer/includes/SSVP-loader.php:17
- > PHP Warning
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 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
- Screenshots: Please a description for screenshot #4 in site-structure-visualizer/assets to your readme.txt
site-structure-visualizer/site-structure-visualizer-plugin.php 85% from 13 tests
The main PHP file in "Site Structure Visualizer" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("site-structure-visualizer.php" instead of "site-structure-visualizer-plugin.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,436 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 160 | 91 | 573 |
JavaScript | 5 | 96 | 87 | 453 |
JSON | 1 | 1 | 0 | 380 |
CSS | 2 | 3 | 6 | 23 |
Markdown | 1 | 5 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
10 PNG files occupy 0.34MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/dev.png | 205.50KB | 65.24KB | ▼ 68.26% |
assets/img/icons/3.png | 26.17KB | 11.73KB | ▼ 55.19% |
assets/img/3.png | 26.17KB | 11.73KB | ▼ 55.19% |
assets/img/2.png | 0.50KB | 0.24KB | ▼ 50.79% |
assets/img/default-logo.png | 15.74KB | 6.98KB | ▼ 55.63% |