Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼149.49ms] Passed 4 tests
This is a short check of server-side resources used by WPMultiHost - 1 WordPress Site with Multiple Domains
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.59 ▲11.33 |
Dashboard /wp-admin | 3.08 ▲0.02 | 41.83 ▼20.07 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 49.23 ▼11.91 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 96.86 ▼563.08 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.04 ▼2.88 |
WPMultiHost /wp-admin/tools.php?page=host-changer | 2.99 | 23.69 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wphc_setting_option |
Browser metrics Passed 4 tests
An overview of browser requirements for WPMultiHost - 1 WordPress Site with Multiple Domains
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,717 ▲121 | 16.09 ▲0.27 | 10.28 ▼0.08 | 47.92 ▼3.57 |
Dashboard /wp-admin | 2,982 ▲63 | 6.30 ▲0.31 | 143.32 ▼30.48 | 122.61 ▼15.92 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.75 ▲0.06 | 69.99 ▼15.76 | 95.05 ▼14.51 |
Add New Post /wp-admin/post-new.php | 1,614 ▲114 | 18.98 ▲0.47 | 360.78 ▼18.79 | 110.61 ▼10.92 |
Media Library /wp-admin/upload.php | 1,822 ▲15 | 5.17 ▲0.10 | 158.17 ▼0.82 | 126.55 ▲3.09 |
WPMultiHost /wp-admin/tools.php?page=host-changer | 1,154 | 2.51 | 66.43 | 46.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/host-changer/app/base/WPHCDeactivate.php
- > /wp-content/plugins/host-changer/app/filters/WPHCFilterHook.php
- > /wp-content/plugins/host-changer/app/base/WPHCBase.php
- > /wp-content/plugins/host-changer/app/base/WPHCActivate.php
- > /wp-content/plugins/host-changer/host-changer.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/host-changer/assets/admin/setting_fields.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/host-changer/assets/admin/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: changer, multihost, multiplehosts, wordpress, host switcher...
host-changer/host-changer.php Passed 13 tests
"WPMultiHost - 1 WordPress Site with Multiple Domains" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
WPMultiHost is an plugin which helps to access same WordPress site from different domains.
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
There were no executable files found in this plugin996 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 295 | 346 | 911 |
JavaScript | 2 | 8 | 12 | 49 |
JSON | 2 | 0 | 0 | 23 |
CSS | 2 | 0 | 6 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 15 | 23.81% |
▷ Public methods | 61 | 96.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.17% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 8 | |
▷ Global constants | 8 | 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 files were detected