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
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.42ms] Passed 4 tests
An overview of server-side resources used by Multiple Domain
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.27 ▼4.47 |
Dashboard /wp-admin | 3.46 ▲0.16 | 47.63 ▲0.18 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 47.26 ▲2.07 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 84.44 ▼12.38 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.94 ▼1.02 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
multiple-domain-add-canonical |
widget_recent-posts |
multiple-domain-ignore-default-ports |
multiple-domain-domains |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Multiple Domain
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 14.26 ▼0.10 | 1.88 ▲0.05 | 39.04 ▼5.49 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.08 | 90.10 ▼8.05 | 40.13 ▲0.50 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 34.67 ▼3.91 | 35.06 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.05 ▲0.09 | 633.49 ▼29.26 | 55.11 ▲1.43 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.15 ▼0.04 | 97.44 ▼1.93 | 44.93 ▲0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- multiple-domain-add-canonical
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- multiple-domain-domains
- multiple-domain-ignore-default-ports
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/multiple-domain/views/lang.php:9
- > PHP Notice
Undefined variable: fields in wp-content/plugins/multiple-domain/views/domains.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/multiple-domain/views/heading.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/multiple-domain/views/domains.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multiple-domain/multiple-domain.php:54
- > PHP Notice
Undefined variable: count in wp-content/plugins/multiple-domain/views/fields.php on line 10
- > PHP Notice
Undefined variable: count in wp-content/plugins/multiple-domain/views/lang.php on line 8
- > PHP Notice
Undefined variable: ignoreDefaultPorts in wp-content/plugins/multiple-domain/views/options.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/multiple-domain/views/fields.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/multiple-domain/views/options.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: domains, multiple, redirect
multiple-domain/multiple-domain.php Passed 13 tests
The principal PHP file in "Multiple Domain" v. 1.0.7 is loaded by WordPress automatically on each request
128 characters long description:
This plugin allows you to have multiple domains in a single WordPress installation and enables custom redirects for each domain.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin808 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 148 | 750 | 663 |
PO File | 2 | 24 | 24 | 129 |
JavaScript | 1 | 5 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 58 | |
▷ Static methods | 3 | 5.17% |
▷ Public methods | 35 | 60.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 39.66% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin