Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.14ms] Passed 4 tests
Analyzing server-side resources used by Freesoul Switch Theme: load a different theme on specific pages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.71 ▼5.00 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.05 ▼6.38 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.97 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 106.45 ▲14.39 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.55 ▲1.53 |
Server storage [IO: ▲0.02MB] [DB: ▲0.01MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- The plugin illegally modified 1 file (2.84KB) outside of "wp-content/plugins/freesoul-switch-theme/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/eos-switch-theme.php
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
eos_themes |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Freesoul Switch Theme: load a different theme on specific pages
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.00 | 1.89 ▼0.02 | 44.43 ▲1.54 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▼0.02 | 94.23 ▼0.31 | 40.42 ▼1.82 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.00 | 39.51 ▼2.99 | 34.58 ▼3.70 |
Add New Post /wp-admin/post-new.php | 6,269 ▲4,743 | 25.92 ▲2.81 | 846.22 ▲234.41 | 54.93 ▲4.23 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.16 ▼0.07 | 106.00 ▲0.74 | 45.86 ▲0.71 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
freesoul-switch-theme/freesoul-switch-theme.php 92% from 13 tests
The primary PHP file in "Freesoul Switch Theme: load a different theme on specific pages" version 1.0.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin337 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 11 | 66 | 258 |
PO File | 1 | 10 | 12 | 53 |
CSS | 1 | 0 | 0 | 19 |
JavaScript | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
Constants | 7 | |
▷ Global constants | 7 | 100.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 images were found in this plugin