Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.38ms] Passed 4 tests
Analyzing server-side resources used by Simple Theme Changer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.72 ▲1.27 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.18 ▼0.69 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.34 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.56 ▼11.60 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.21 ▼0.91 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
display_type |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Theme Changer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.45 ▲0.17 | 2.04 ▲0.28 | 52.69 ▲9.38 |
Dashboard /wp-admin | 2,222 ▲31 | 4.98 ▼0.92 | 106.35 ▼0.23 | 44.15 ▼2.99 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▼0.00 | 35.77 ▼3.75 | 32.13 ▼6.52 |
Add New Post /wp-admin/post-new.php | 1,527 ▼7 | 23.77 ▲0.71 | 676.87 ▲41.03 | 54.34 ▼12.92 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.18 ▼0.03 | 109.10 ▼1.26 | 49.30 ▲2.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-theme-changer/view_user_button.php
- > /wp-content/plugins/simple-theme-changer/view_admin.php
- > /wp-content/plugins/simple-theme-changer/theme_changer.php
- > /wp-content/plugins/simple-theme-changer/class_theme_changer.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Contributors: Plugin contributors not specified
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: A description for screenshot #1 is required in simple-theme-changer/assets to your readme.txt
simple-theme-changer/theme_changer.php 92% from 13 tests
The principal PHP file in "Simple Theme Changer" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-theme-changer.php" instead of "theme_changer.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
There were no executable files found in this plugin486 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 370 | 75 | 486 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected