Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.68ms] Passed 4 tests
A check of server-side resources used by Whois XML API Whois
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 38.24 ▼1.10 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.30 ▼5.43 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.66 ▼7.87 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.39 ▼4.33 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.31 ▼0.23 |
Whois XML API Whois settings /wp-admin/options-general.php?page=whoisxmlapicom-whois-plugin | 3.24 | 31.71 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Whois XML API Whois
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲147 | 13.79 ▼0.65 | 6.38 ▲4.64 | 37.47 ▼8.64 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲0.02 | 102.02 ▼12.39 | 39.43 ▼3.63 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.03 | 39.34 ▲2.18 | 40.18 ▲6.56 |
Add New Post /wp-admin/post-new.php | 1,546 ▲17 | 23.37 ▲0.19 | 659.75 ▲27.73 | 57.56 ▲2.89 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.25 ▲0.09 | 96.65 ▼0.46 | 42.66 ▲0.73 |
Whois XML API Whois settings /wp-admin/options-general.php?page=whoisxmlapicom-whois-plugin | 795 | 2.03 | 24.98 | 27.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/whois-xml-api-whois/whois-xml-api-whois.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/whois-xml-api-whois/src/WhoisXmlApiCom_Whois_Plugin.php:3
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: comments, links, whois, whoisxmlapi, tooltip...
whois-xml-api-whois/whois-xml-api-whois.php Passed 13 tests
The entry point to "Whois XML API Whois" version 1.0.2 is a PHP file that has certain tags in its header comment area
57 characters long description:
Add WHOIS info for domain names in post text and comments
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,994 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 732 | 1,214 | 2,369 |
CSS | 3 | 63 | 44 | 325 |
PHP | 4 | 59 | 13 | 300 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 3 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 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
No PNG images were found in this plugin