Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/dnslt/index.php+80
Non-static method Dnslt::active_deactive() should not be called statically
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.04ms] Passed 4 tests
Server-side resources used by dnsLT Free domain name whois
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.93 ▼36.20 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.80 ▼41.97 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.65 ▼42.30 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.45 ▼91.69 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.34 ▼30.77 |
dnsLT /wp-admin/options-general.php?page=dnslt | 2.05 | 5.56 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
dnslt_search_background |
can_compress_scripts |
Browser metrics Passed 4 tests
dnsLT Free domain name whois: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.48 ▲0.19 | 1.92 ▼0.35 | 44.34 ▼4.53 |
Dashboard /wp-admin | 2,213 ▲28 | 5.86 ▲0.99 | 94.43 ▼7.81 | 39.25 ▲1.31 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▼0.04 | 34.87 ▼4.39 | 32.88 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.42 ▼0.03 | 681.23 ▲0.15 | 61.69 ▲10.03 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.17 ▼0.05 | 106.11 ▼2.46 | 45.79 ▼2.63 |
dnsLT /wp-admin/options-general.php?page=dnslt | 842 | 2.27 | 33.55 | 25.26 |
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
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/dnslt/index.php+80
Non-static method Dnslt::active_deactive() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=dnslt
- > Deprecated in wp-content/plugins/dnslt/index.php+80
Non-static method Dnslt::active_deactive() should not be called statically
- > GET request to /wp-admin/options-general.php?page=dnslt
- > Deprecated in wp-content/plugins/dnslt/index.php+81
Non-static method Dnslt::dnslt_load_scripts() should not be called statically
- > GET request to /wp-admin/options-general.php?page=dnslt
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dnslt_result_script_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=dnslt
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dnslt_domain_script_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=dnslt
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dnslt_defult_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=dnslt
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dnslt_style_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=dnslt
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dnslt_result_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dnslt
- > Notice in wp-includes/plugin.php+1004
Undefined offset: 0
- > GET request to /wp-admin/options-general.php?page=dnslt
- > Deprecated in wp-content/plugins/dnslt/index.php+82
Non-static method Dnslt::init() should not be called statically
- > GET request to /wp-admin/options-general.php?page=dnslt
- > Deprecated in wp-content/plugins/dnslt/index.php+160
Non-static method DnsltAdmin::init() should not be called statically
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/dnslt/index.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Search widget), #2 (Search result), #3 (Admin setting)
dnslt/index.php 85% from 13 tests
"dnsLT Free domain name whois" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: The plugin description must be longer than 10 characters (currently 9 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dnslt.php" instead of "index.php")
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
No dangerous file extensions were detected396 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 108 | 22 | 225 |
PHP | 1 | 10 | 16 | 135 |
SVG | 3 | 0 | 1 | 34 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected