Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.38ms] Passed 4 tests
Server-side resources used by WP Switch Util
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.37 ▼5.40 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.79 ▼2.54 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.66 ▲0.03 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.17 ▼1.60 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.24 ▲7.27 |
Wp Switch Util /wp-admin/options-general.php?page=wpSwitchUtil | 3.30 | 34.97 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
wp_su_options |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Switch Util
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.50 ▼1.11 | 1.83 ▼0.36 | 40.05 ▲1.49 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼0.97 | 107.55 ▲7.04 | 42.74 ▼1.10 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▼0.08 | 39.62 ▲3.32 | 35.56 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.37 ▲0.22 | 636.61 ▼29.23 | 54.00 ▼0.24 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▲0.01 | 95.92 ▼0.42 | 42.70 ▲0.51 |
Wp Switch Util /wp-admin/options-general.php?page=wpSwitchUtil | 965 | 2.05 | 25.50 | 28.05 |
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
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-switch-util/wp_switch_util.php:58
- > PHP Fatal error
Uncaught Error: Class 'WPSwitchUtilConfig' not found in wp-content/plugins/wp-switch-util/inc/wp_switch_util_setting.php:2
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-switch-util ===
)
wp-switch-util/wp_switch_util.php 77% from 13 tests
The principal PHP file in "WP Switch Util" v. 1.2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/wp-switch-util")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-switch-util.php" instead of "wp_switch_util.php")
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
Success! There were no dangerous files found in this plugin571 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 47 | 55 | 414 |
PO File | 1 | 32 | 35 | 86 |
Markdown | 1 | 34 | 0 | 71 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected