Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.32ms] Passed 4 tests
Analyzing server-side resources used by Dropdown Multisite selector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.11 | 42.93 ▲0.62 |
Dashboard /wp-admin | 3.43 ▲0.04 | 52.49 ▼14.96 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 48.44 ▼3.27 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.08 | 87.19 ▼15.66 |
Media Library /wp-admin/upload.php | 3.35 ▲0.08 | 42.31 ▲2.25 |
Dropdown Multisite /wp-admin/options-general.php?page=dropdown-multisite-selector | 3.37 | 37.59 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
dms_sorting |
widget_dms_widget |
theysaidso_admin_options |
db_upgraded |
dms_multisite |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
dms_placeholder |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dropdown Multisite selector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.69 ▼0.66 | 8.14 ▲6.42 | 42.92 ▼1.62 |
Dashboard /wp-admin | 2,199 ▲25 | 5.56 ▲0.04 | 90.77 ▼21.18 | 39.80 ▼2.92 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.02 | 35.82 ▲1.05 | 33.49 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.35 ▼0.17 | 702.84 ▲91.69 | 56.63 ▲5.45 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.16 ▼0.03 | 103.66 ▲0.05 | 44.70 ▼0.66 |
Dropdown Multisite /wp-admin/options-general.php?page=dropdown-multisite-selector | 1,022 | 1.67 | 23.90 | 33.40 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 10 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- dms_multisite
- dms_placeholder
- widget_theysaidso_widget
- dms_sorting
- widget_recent-posts
- widget_dms_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dropdown-multisite-selector/functions/widgets.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/dropdown-multisite-selector/templates/dms-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropdown-multisite-selector/functions/wordpress.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dropdown-multisite-selector/functions/shortcodes.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropdown-multisite-selector/functions/ajax.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #2 (The front end - widget area + shortcode in post) image required
dropdown-multisite-selector/dropdown-multisite-selector.php Passed 13 tests
The primary PHP file in "Dropdown Multisite selector" version 0.9.2 is used by WordPress to initiate all plugin functionality
77 characters long description:
Allows you to configure a select option of redirecting to different webpages.
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
Everything looks great! No dangerous files found in this plugin811 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 156 | 96 | 580 |
JavaScript | 2 | 44 | 19 | 141 |
CSS | 2 | 14 | 0 | 90 |
PHP code Passed 2 tests
This is a short overview 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.46 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin