Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.94ms] Passed 4 tests
An overview of server-side resources used by TW Switch Mobile Domain
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.09 ▲2.53 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.04 ▼5.14 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.68 ▲0.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.43 ▼5.48 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 43.12 ▲7.99 |
TW Mobile Domain /wp-admin/themes.php?page=tw-switch-mobile-domain | 3.36 | 30.70 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
TW Switch Mobile Domain: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.32 ▼0.21 | 1.81 ▲0.04 | 45.48 ▲4.71 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.03 | 91.08 ▲3.03 | 36.95 ▼7.39 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.04 | 39.46 ▲0.20 | 37.72 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,540 ▲3 | 18.02 ▼0.10 | 608.15 ▲4.34 | 66.74 ▲1.51 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▼0.04 | 96.57 ▲1.66 | 42.18 ▼2.42 |
TW Mobile Domain /wp-admin/themes.php?page=tw-switch-mobile-domain | 878 | 2.00 | 23.21 | 28.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=tw-switch-mobile-domain
- > User deprecated in wp-includes/functions.php+5453
Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tw-switch-mobile-domain/tw-switch-mobile-domain.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #0 is missing in tw-switch-mobile-domain/assets to your readme.txt
tw-switch-mobile-domain/tw-switch-mobile-domain.php Passed 13 tests
"TW Switch Mobile Domain" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
Redirect to Mobile domain and switch mobile theme
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected129 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 8 | 129 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin