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.02MB] [CPU: ▼4.33ms] Passed 4 tests
A check of server-side resources used by WP Hydra
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.44 ▼0.05 |
Dashboard /wp-admin | 3.34 ▼0.01 | 45.17 ▼15.30 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.48 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 109.10 ▼3.18 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.07 ▲1.21 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Hydra: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.23 ▼1.52 | 1.74 ▼0.00 | 45.98 ▲3.40 |
Dashboard /wp-admin | 2,206 ▲21 | 4.86 ▼1.00 | 108.50 ▲3.16 | 41.99 ▼1.79 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.02 | 38.50 ▼1.33 | 34.76 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.24 ▲0.29 | 652.18 ▲61.53 | 59.47 ▲12.29 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.25 ▲0.02 | 99.71 ▲0.58 | 42.51 ▼1.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-hydra/tests/bootstrap.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-hydra/tests/test-setup-upload-dir.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-hydra/tests/test-is-ssl.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-hydra/tests/test-setup-content.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-hydra/tests/test-construct.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-hydra/tests/test-global-var.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-hydra/tests/test-replace-domain.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-hydra/tests/test-setup-domain.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
6 plugin tags: hydra, domains, multiple, wp, installation...
wp-hydra/wp-hydra.php Passed 13 tests
The primary PHP file in "WP Hydra" version 1.2 is used by WordPress to initiate all plugin functionality
81 characters long description:
Allows one WordPress installation to be resolved and browsed at multiple domains.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected668 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 121 | 343 | 356 |
Bourne Shell | 1 | 21 | 11 | 120 |
YAML | 2 | 10 | 0 | 72 |
Markdown | 2 | 39 | 0 | 58 |
XML | 2 | 4 | 2 | 38 |
JSON | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 97.83% |
▷ Protected methods | 1 | 2.17% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected