84% domain-age-checker-tool

Code Review | Domain Age Checker Tool

WordPress plugin Domain Age Checker Tool scored84%from 54 tests.

About plugin

  • Plugin page: domain-age-checke...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Oct 17, 2023
  • Number of updates: 8
  • Update frequency: every 61.9 days
  • Top authors: wprefers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.72ms] Passed 4 tests

This is a short check of server-side resources used by Domain Age Checker Tool
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.30 ▲3.37
Dashboard /wp-admin3.40 ▲0.0550.81 ▼12.33
Posts /wp-admin/edit.php3.51 ▲0.1551.81 ▲2.40
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.32 ▼12.32
Media Library /wp-admin/upload.php3.32 ▲0.0937.64 ▲4.07

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Domain Age Checker Tool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲15713.68 ▼0.679.18 ▲7.3441.79 ▲0.76
Dashboard /wp-admin2,238 ▲615.60 ▼0.0690.83 ▼2.0042.89 ▼3.20
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0533.80 ▼5.7233.76 ▼4.10
Add New Post /wp-admin/post-new.php1,526 ▼023.60 ▲0.41666.39 ▼80.1154.12 ▼5.58
Media Library /wp-admin/upload.php1,403 ▲94.17 ▲0.0194.75 ▼4.0139.03 ▼1.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/domain-age-checker-tool/src/templates/domain-age-checker-tool.php
    • > /wp-content/plugins/domain-age-checker-tool/vendor/phois/whois/examples/usage-example.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

domain-age-checker-tool/domain-age-checker-tool.php 92% from 13 tests

The entry point to "Domain Age Checker Tool" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,134 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JSON4004,006
PHP172614321,064
JavaScript18144
Markdown110015
CSS1005

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.12
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods65
▷ Static methods1827.69%
▷ Public methods5990.77%
▷ Protected methods00.00%
▷ Private methods69.23%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin