10% domain-check

Code Review | Domain Check

WordPress plugin Domain Check scored 10% from 54 tests.

About plugin

  • Plugin page: domain-check
  • Plugin version: 1.0.19
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Jan 26, 2022
  • Number of updates: 47
  • Update frequency: every 46.7 days
  • Top authors: domaincheckplugin (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active / 15,725 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3938.63 ▼1.69
Dashboard /wp-admin4.78 ▲1.4857.64 ▲11.48
Posts /wp-admin/edit.php4.83 ▲1.4754.52 ▲6.43
Add New Post /wp-admin/post-new.php7.30 ▲1.4192.23 ▲2.34
Media Library /wp-admin/upload.php4.64 ▲1.4143.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲14513.61 ▼0.761.66 ▼0.1841.74 ▼8.95
Dashboard /wp-admin2,289 ▲1015.88 ▲0.02110.92 ▼3.6742.98 ▲3.51
Posts /wp-admin/edit.php2,170 ▲782.05 ▲0.0538.05 ▼3.3134.50 ▼1.39
Add New Post /wp-admin/post-new.php1,580 ▲4423.07 ▼0.05627.76 ▼74.1148.72 ▼3.99
Media Library /wp-admin/upload.php1,472 ▲844.31 ▲0.0798.12 ▼15.2043.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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
XML10037,337
JSON20016,878
PHP341,1611,3058,927
JavaScript262180293
SVG60021244
SQL11039

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 code0.45
Average class complexity36.71
▷ Minimum class complexity1.00
▷ Maximum class complexity142.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity107.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes00.00%
▷ Concrete classes34100.00%
▷ Final classes00.00%
Methods309
▷ Static methods14245.95%
▷ Public methods30799.35%
▷ Protected methods00.00%
▷ Private methods20.65%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.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
FileSize - originalSize - compressedSavings
admin/images/icons/eye-24x24.png0.48KB0.67KB0.00%
images/icons/tags-green-24x24.png0.26KB0.16KB▼ 38.58%
admin/images/icons/flag-blue-24x24.png0.21KB0.13KB▼ 37.44%
images/icons/flag-blue-24x24.png0.21KB0.13KB▼ 37.44%
admin/images/icons/lock-locked-yellow-24x24.png0.18KB0.12KB▼ 36.70%