89% cb-domain-checker

Code Review | CB Domain Checker with Ajax

WordPress plugin CB Domain Checker with Ajax scored89%from 54 tests.

About plugin

  • Plugin page: cb-domain-checker
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2020
  • Latest release: Jul 26, 2022
  • Number of updates: 8
  • Update frequency: every 97.6 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,001 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼2.79ms] Passed 4 tests

Analyzing server-side resources used by CB Domain Checker with Ajax
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.59 ▲1.49
Dashboard /wp-admin3.32 ▲0.0248.78 ▼4.08
Posts /wp-admin/edit.php3.37 ▲0.0147.79 ▼6.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.09 ▼1.03
Media Library /wp-admin/upload.php3.24 ▲0.0137.13 ▲0.86

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for CB Domain Checker with Ajax
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16513.60 ▼0.815.82 ▲3.5442.11 ▼1.78
Dashboard /wp-admin2,221 ▲185.83 ▲0.94104.61 ▼7.1739.66 ▼0.92
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0440.55 ▼2.5337.54 ▼1.30
Add New Post /wp-admin/post-new.php1,545 ▲1223.23 ▼0.09616.17 ▲2.5157.33 ▼0.01
Media Library /wp-admin/upload.php1,391 ▼94.13 ▼0.12101.68 ▼3.4946.06 ▲2.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
Attributes that require attention: Please take inspiration from this readme.txt

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

The main file in "CB Domain Checker with Ajax" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin271 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS120166
PHP4231882
JavaScript13023

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin