Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Parse error in wp-content/plugins/ps-wp-multi-domain/ps-wp-multidomain.php+115
syntax error, unexpected 'new' (T_NEW)
Server metrics [RAM: ▼0.00MB] [CPU: ▼137.25ms] Passed 4 tests
This is a short check of server-side resources used by PS WP Multi Domain
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 29.16 ▲9.80 |
Dashboard /wp-admin | 3.06 ▲0.00 | 45.14 ▲1.09 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 39.19 ▼1.06 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 89.53 ▼540.37 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 30.93 ▼8.64 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for PS WP Multi Domain
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.83 ▲0.62 | 11.02 ▲1.15 | 48.81 ▲4.25 |
Dashboard /wp-admin | 2,970 ▲36 | 5.89 ▼0.20 | 137.84 ▼1.50 | 101.80 ▼2.49 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 61.81 ▼3.58 | 86.47 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,872 ▼0 | 19.16 ▲0.04 | 367.23 ▲4.14 | 106.02 ▼6.13 |
Media Library /wp-admin/upload.php | 1,736 ▼71 | 5.00 ▼0.03 | 149.06 ▼0.42 | 114.46 ▼9.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Parse error
syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/ps-wp-multi-domain/ps-wp-multidomain.php on line 115
- > PHP Parse 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (Same WordPress in different URL.)
ps-wp-multi-domain/ps-wp-multidomain.php 92% from 13 tests
The entry point to "PS WP Multi Domain" version 0.8.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 ("ps-wp-multi-domain.php" instead of "ps-wp-multidomain.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin107 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 14 | 86 |
PO File | 1 | 4 | 3 | 21 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 81.42KB | 28.49KB | ▼ 65.01% |