74% wp24-domain-check

Code Review | WP24 Domain Check

WordPress plugin WP24 Domain Check scored 74% from 54 tests.

About plugin

  • Plugin page: wp24-domain-check
  • Plugin version: 1.10.10
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 24, 2019
  • Latest release: Aug 26, 2023
  • Number of updates: 156
  • Update frequency: every 9.6 days
  • Top authors: wp24dotorg (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

4,000+ active / 64,880 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.87ms] Passed 4 tests

Analyzing server-side resources used by WP24 Domain Check
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.15 ▼2.47
Dashboard /wp-admin3.47 ▲0.1746.20 ▼4.42
Posts /wp-admin/edit.php3.52 ▲0.1747.45 ▼0.32
Add New Post /wp-admin/post-new.php6.07 ▲0.1985.00 ▼16.25
Media Library /wp-admin/upload.php3.39 ▲0.1738.99 ▲3.57
WP24 Domain Check /wp-admin/options-general.php?page=wp24_domaincheck_settings3.3633.72

Server storage [IO: ▲0.68MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: 4 new tables, 8 new options
New tables
wp_wp24_tld_woocommerce
wp_wp24_tld_prices_links
wp_wp24_whois_queries
wp_wp24_whois_servers
New WordPress options
can_compress_scripts
widget_wp24_domaincheck_widget
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
wp24_domaincheck

Browser metrics Passed 4 tests

An overview of browser requirements for WP24 Domain Check
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.39 ▼0.991.63 ▼0.1742.49 ▼8.10
Dashboard /wp-admin2,229 ▲385.12 ▼0.81113.03 ▲1.0039.34 ▼8.58
Posts /wp-admin/edit.php2,117 ▲252.37 ▲0.3742.93 ▲5.7934.05 ▲1.27
Add New Post /wp-admin/post-new.php1,531 ▲1223.18 ▼0.22694.83 ▲13.6437.68 ▼15.53
Media Library /wp-admin/upload.php1,414 ▲264.47 ▲0.25103.76 ▼12.7642.09 ▼9.16
WP24 Domain Check /wp-admin/options-general.php?page=wp24_domaincheck_settings1,0982.1530.4033.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WP24_Domain_Check_Settings::uninstall() should not be called statically
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_wp24_domaincheck_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp24-domain-check/includes/class-wp24-widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: A description for screenshot #14 is required in wp24-domain-check/assets to your readme.txt
  • Screenshots: Please add an image for screenshot #7 (General settings)
You can look at the official readme.txt

wp24-domain-check/wp24-domain-check.php Passed 13 tests

The entry point to "WP24 Domain Check" version 1.10.10 is a PHP file that has certain tags in its header comment area
86 characters long description:
Check (whois) domain names for availability. Easy integration via shortcode or widget.

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin9,615 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP102808707,469
JavaScript4103931,199
PO File1289351703
CSS3280204
XML10040

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity70.12
▷ Minimum class complexity4.00
▷ Maximum class complexity213.00
Average method complexity7.82
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods74
▷ Static methods810.81%
▷ Public methods4560.81%
▷ Protected methods1722.97%
▷ Private methods1216.22%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin