84% ajax-domain-checker

Code Review | Ajax Domain Checker

WordPress plugin Ajax Domain Checker scored84%from 54 tests.

About plugin

  • Plugin page: ajax-domain-checker
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jan 27, 2015
  • Latest release: Mar 3, 2021
  • Number of updates: 33
  • Update frequency: every 67.5 days
  • Top authors: asdqwe123 (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /78,632 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.62ms] Passed 4 tests

This is a short check of server-side resources used by Ajax Domain Checker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.78 ▲1.79
Dashboard /wp-admin3.36 ▲0.0147.68 ▼13.09
Posts /wp-admin/edit.php3.41 ▲0.0545.39 ▼3.67
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.28 ▼9.83
Media Library /wp-admin/upload.php3.28 ▲0.0536.32 ▲0.10

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Ajax Domain Checker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲10313.67 ▼0.724.32 ▲2.0342.72 ▼6.55
Dashboard /wp-admin2,266 ▲785.88 ▲0.06113.42 ▲13.7743.92 ▲0.79
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0536.72 ▲1.2635.02 ▼1.11
Add New Post /wp-admin/post-new.php1,546 ▲423.27 ▲5.00665.82 ▲32.2961.34 ▲6.39
Media Library /wp-admin/upload.php1,398 ▲104.23 ▲0.0399.10 ▼0.6841.36 ▼1.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_adc_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-domain-checker/ajax-domain-checker.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

ajax-domain-checker/ajax-domain-checker.php 92% from 13 tests

The main PHP script in "Ajax Domain Checker" version 1.3.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,505 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing 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 code0.19
Average class complexity8.00
▷ Minimum class complexity7.00
▷ Maximum class complexity9.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected