Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/quick-whois/quickwhois.php+158
Methods with the same name as their class will not be constructors in a future version of PHP; whois_widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼58.10ms] Passed 4 tests
Analyzing server-side resources used by Quick Whois
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.06 ▼38.07 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.57 ▼50.56 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.46 ▼47.45 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.18 ▼96.32 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.03 ▼33.99 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 135 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_whois_widget |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Quick Whois
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.35 ▼0.31 | 1.74 ▼0.08 | 49.31 ▲3.64 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▼0.07 | 85.54 ▼9.56 | 40.76 ▲1.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.03 | 36.69 ▼3.82 | 35.80 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.04 ▼0.33 | 653.83 ▼18.61 | 51.68 ▼2.04 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.41 ▲0.23 | 102.03 ▼16.85 | 45.10 ▼3.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/quick-whois/quickwhois.php+158
Methods with the same name as their class will not be constructors in a future version of PHP; whois_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_whois_widget
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/quick-whois/phpwhois/testsuite.php
- > /wp-content/plugins/quick-whois/phpwhois/whois.cl.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Cannot use string offset as an array in wp-content/plugins/quick-whois/phpwhois/whois.parser.php(370) : eval()'d code:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/quick-whois/phpwhois/whois.servers.php:32
- > PHP Fatal error
Uncaught Error: Class 'Whois' not found in wp-content/plugins/quick-whois/phpwhois/whois.utils.php:28
- > PHP Warning
Use of undefined constant STDIN - assumed 'STDIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-whois/phpwhois/testsuite.php on line 85
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/quick-whois/phpwhois/testsuite.php on line 34
- > PHP Warning
fopen(testsuite.txt): failed to open stream: No such file or directory in wp-content/plugins/quick-whois/phpwhois/testsuite.php on line 62
- > PHP Fatal error
Uncaught Error: Class 'WhoisClient' not found in wp-content/plugins/quick-whois/phpwhois/whois.gtld.php:33
- > PHP Warning
file(./test.txt): failed to open stream: No such file or directory in wp-content/plugins/quick-whois/phpwhois/testsuite.php on line 31
- > PHP Fatal error
Uncaught Error: Class 'WhoisClient' not found in wp-content/plugins/quick-whois/phpwhois/whois.ws.php:33
- > PHP Fatal error
Uncaught Error: Class 'WhoisClient' not found in wp-content/plugins/quick-whois/phpwhois/whois.jp.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: whois, domains
quick-whois/quickwhois.php 92% from 13 tests
The principal PHP file in "Quick Whois" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("quick-whois.php" instead of "quickwhois.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
Success! There were no dangerous files found in this plugin7,133 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 127 | 2,086 | 2,808 | 7,130 |
CSS | 1 | 0 | 1 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 5.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 192.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 121 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 121 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 163 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 120 | |
▷ Global constants | 120 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
phpwhois/whois.icon.png | 0.56KB | 0.49KB | ▼ 12.96% |