Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/domain-check/lib/domain-check-search.php+329
stream_socket_client(): unable to connect to ssl://wp.com:443 (Connection refused)
Server metrics [RAM: ▲1.17MB] [CPU: ▲3.83ms] Passed 4 tests
Server-side resources used by Domain Check
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 38.63 ▼1.69 |
Dashboard /wp-admin | 4.78 ▲1.48 | 57.64 ▲11.48 |
Posts /wp-admin/edit.php | 4.83 ▲1.47 | 54.52 ▲6.43 |
Add New Post /wp-admin/post-new.php | 7.30 ▲1.41 | 92.23 ▲2.34 |
Media Library /wp-admin/upload.php | 4.64 ▲1.41 | 43.66 ▲8.22 |
Server storage [IO: ▲2.07MB] [DB: ▲0.17MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 139 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_domain_check_coupons |
wp_domain_check_domains |
wp_domain_check_ssl |
New WordPress options |
---|
domain_check_settings |
widget_recent-comments |
widget_recent-posts |
domain_check_version |
can_compress_scripts |
widget_theysaidso_widget |
domain_check_coupons_update |
db_upgraded |
domain_check_coupons_updated |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Domain Check
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲145 | 13.61 ▼0.76 | 1.66 ▼0.18 | 41.74 ▼8.95 |
Dashboard /wp-admin | 2,289 ▲101 | 5.88 ▲0.02 | 110.92 ▼3.67 | 42.98 ▲3.51 |
Posts /wp-admin/edit.php | 2,170 ▲78 | 2.05 ▲0.05 | 38.05 ▼3.31 | 34.50 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,580 ▲44 | 23.07 ▼0.05 | 627.76 ▼74.11 | 48.72 ▼3.99 |
Media Library /wp-admin/upload.php | 1,472 ▲84 | 4.31 ▲0.07 | 98.12 ▼15.20 | 43.09 ▼4.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.17MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_domain_check_ssl
- wp_domain_check_coupons
- wp_domain_check_domains
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- domain_check_coupons_updated
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
domain-check/domain-check.php 92% from 13 tests
This is the main PHP file of "Domain Check" version 1.0.19, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 571 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin63,718 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 0 | 0 | 37,337 |
JSON | 2 | 0 | 0 | 16,878 |
PHP | 34 | 1,161 | 1,305 | 8,927 |
JavaScript | 2 | 62 | 180 | 293 |
SVG | 60 | 0 | 21 | 244 |
SQL | 1 | 1 | 0 | 39 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 36.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 309 | |
▷ Static methods | 142 | 45.95% |
▷ Public methods | 307 | 99.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.65% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.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
8 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icons/eye-24x24.png | 0.48KB | 0.67KB | 0.00% |
images/icons/tags-green-24x24.png | 0.26KB | 0.16KB | ▼ 38.58% |
admin/images/icons/flag-blue-24x24.png | 0.21KB | 0.13KB | ▼ 37.44% |
images/icons/flag-blue-24x24.png | 0.21KB | 0.13KB | ▼ 37.44% |
admin/images/icons/lock-locked-yellow-24x24.png | 0.18KB | 0.12KB | ▼ 36.70% |