Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼8.71ms] Passed 4 tests
A check of server-side resources used by WP User Stylesheet Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 44.96 ▼2.79 |
Dashboard /wp-admin | 3.47 ▲0.13 | 52.99 ▼12.66 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.23 ▼4.64 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 89.40 ▼14.76 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.47 ▼0.00 |
WP User Stylesheet Switcher /wp-admin/options-general.php?page=wp_user_stylesheet_switcher | 3.34 | 32.97 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_wp_user_stylesheet_switcher_widgets |
wp_user_stylesheet_switcher_settings |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP User Stylesheet Switcher
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲94 | 13.72 ▼1.05 | 9.74 ▲7.79 | 41.59 ▲0.41 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▼0.07 | 84.43 ▼18.10 | 36.57 ▼6.79 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.01 | 38.41 ▲1.31 | 33.13 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,531 ▼9 | 17.66 ▼0.52 | 662.68 ▲10.41 | 61.79 ▲10.12 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.29 ▲0.07 | 97.68 ▼9.72 | 44.87 ▼1.01 |
WP User Stylesheet Switcher /wp-admin/options-general.php?page=wp_user_stylesheet_switcher | 1,120 | 2.05 | 23.64 | 32.36 |
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
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp_user_stylesheet_switcher
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp_user_stylesheet_switcher
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-user-stylesheet-switcher/wp_user_stylesheet_switcher.php:776
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: stylesheet, css, accessibility, multisite, customize
wp-user-stylesheet-switcher/wp_user_stylesheet_switcher.php 85% from 13 tests
The main file in "WP User Stylesheet Switcher" v. v2.2.0... serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "v2.2.0...")
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-user-stylesheet-switcher.php" instead of "wp_user_stylesheet_switcher.php")
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
Success! There were no dangerous files found in this plugin1,264 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 136 | 113 | 682 |
PO File | 3 | 135 | 137 | 398 |
JavaScript | 5 | 36 | 19 | 184 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 82.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 9.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin