Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼140.17ms] Passed 4 tests
Analyzing server-side resources used by Easy Theme plugin Switcher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 30.08 ▲7.70 |
Dashboard /wp-admin | 3.09 ▲0.04 | 47.41 ▼5.98 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 46.54 ▲0.24 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 85.85 ▼559.62 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 37.50 ▲4.69 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
easy-wp-tp-switcher-version |
Browser metrics Passed 4 tests
Easy Theme plugin Switcher: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,777 ▲181 | 15.86 ▼0.10 | 12.62 ▲2.13 | 44.14 ▼4.85 |
Dashboard /wp-admin | 3,065 ▲134 | 6.24 ▲0.25 | 161.32 ▼9.78 | 134.73 ▲17.35 |
Posts /wp-admin/edit.php | 2,839 ▲100 | 2.73 ▲0.01 | 66.15 ▼5.53 | 123.78 ▲36.06 |
Add New Post /wp-admin/post-new.php | 1,753 ▼1,824 | 18.45 ▲3.67 | 381.87 ▼75.27 | 137.84 ▲27.98 |
Media Library /wp-admin/upload.php | 1,910 ▲103 | 5.07 ▲0.03 | 154.80 ▲1.86 | 140.21 ▲23.51 |
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 1 option in the database
- easy-wp-tp-switcher-version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: theme plugin switcher, update theme plugin, plugin, theme
easy-theme-plugin-switcher/easy-theme-plugin-switcher.php 77% from 13 tests
The main PHP script in "Easy Theme plugin Switcher" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
- Git Repository: An alternative Git repository was detected
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin808 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 145 | 215 | 376 |
JavaScript | 1 | 81 | 66 | 280 |
CSS | 1 | 24 | 0 | 152 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 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 | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin