Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.89ms] Passed 4 tests
Analyzing server-side resources used by MultiDomain enabler
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.79 ▼3.50 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.22 ▼5.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.81 ▼0.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.41 ▼10.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.79 ▲0.78 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for MultiDomain enabler
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.18 ▼1.40 | 1.73 ▼0.10 | 43.25 ▲2.01 |
Dashboard /wp-admin | 2,216 ▲28 | 5.79 ▼0.06 | 102.17 ▼14.02 | 40.33 ▼5.29 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.99 ▼0.03 | 33.37 ▼4.03 | 32.12 ▼5.76 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 17.87 ▲0.35 | 652.16 ▼12.98 | 53.94 ▲3.19 |
Media Library /wp-admin/upload.php | 1,404 ▲22 | 4.19 ▲0.02 | 100.67 ▲0.93 | 42.08 ▼3.91 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/multidomain-multitheme/views/msg.php
- > /wp-content/plugins/multidomain-multitheme/views/setDomains.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: msg in wp-content/plugins/multidomain-multitheme/views/msg.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/multidomain-multitheme/views/msg.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multidomain-multitheme/multidomain.php:19
- > PHP Notice
Undefined variable: msg in wp-content/plugins/multidomain-multitheme/views/msg.php on line 2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/multidomain-multitheme/views/setDomains.php on line 48
- > PHP Notice
Undefined variable: domains in wp-content/plugins/multidomain-multitheme/views/setDomains.php on line 24
- > PHP Notice
Undefined variable: htaccess in wp-content/plugins/multidomain-multitheme/views/setDomains.php on line 68
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/multidomain-multitheme/views/msg.php on line 2
- > PHP Notice
Undefined variable: themes in wp-content/plugins/multidomain-multitheme/views/setDomains.php on line 48
- > PHP Notice
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 issues were found
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:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== multidomain-multitheme ===
)
multidomain-multitheme/multidomain.php 92% from 13 tests
The entry point to "MultiDomain enabler" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("multidomain-multitheme.php" instead of "multidomain.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected334 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 61 | 40 | 294 |
Markdown | 1 | 33 | 0 | 40 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 13 | 100.00% |
▷ Public methods | 13 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/menu.png | 8.51KB | 3.64KB | ▼ 57.22% |
assets/site3.png | 25.58KB | 9.04KB | ▼ 64.66% |
assets/site4.png | 44.17KB | 16.67KB | ▼ 62.27% |
assets/autogenerated_htaccess.png | 34.74KB | 14.77KB | ▼ 57.48% |
assets/pick_theme.png | 19.23KB | 6.31KB | ▼ 67.17% |