Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/switch-theme/switch-theme.php+139
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.54ms] Passed 4 tests
This is a short check of server-side resources used by Switch Theme
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.34 ▲1.12 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.36 ▼5.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.38 ▼2.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.29 ▼15.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.22 ▲6.15 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Switch Theme: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.34 ▼1.05 | 1.73 ▼0.05 | 39.90 ▼1.03 |
Dashboard /wp-admin | 2,203 ▲18 | 5.76 ▼0.10 | 97.33 ▼0.93 | 37.07 ▼9.73 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.05 | 39.94 ▼3.34 | 35.17 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 18.23 ▼4.98 | 589.90 ▼9.78 | 58.24 ▲3.78 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.20 ▼0.03 | 93.97 ▼10.19 | 41.18 ▼2.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/switch-theme/switch-theme.php on line 139
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (From this panel you can choose from a list of themes and switch your entire network to that theme.), #2 (You will find the `Switch Theme` panel under the `Themes` menu in the WordPress Network Admin.)
- Plugin Name: You should set the name of your plugin on the first line (
=== switch-theme ===
)
switch-theme/switch-theme.php 92% from 13 tests
Analyzing the main PHP file in "Switch Theme" version 1.0
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin91 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 21 | 91 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 1.25 |
▷ 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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 27.37KB | 8.36KB | ▼ 69.45% |
screenshot-2.png | 11.00KB | 2.75KB | ▼ 74.97% |