99% add-to-cart-ajax-for-hello-elementor

Code Review | Add to Cart Ajax for Hello Elementor

WordPress plugin Add to Cart Ajax for Hello Elementor scored 99% from 54 tests.

About plugin

  • Plugin page: add-to-cart-ajax-...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Sep 27, 2021
  • Latest release: Feb 4, 2022
  • Number of updates: 10
  • Update frequency: every 13.0 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 588 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼298.69ms] Passed 4 tests

A check of server-side resources used by Add to Cart Ajax for Hello Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1952.00 ▲3.31
Dashboard /wp-admin3.43 ▲0.0235.20 ▲3.84
Posts /wp-admin/edit.php3.66 ▲0.0236.07 ▲0.27
Add New Post /wp-admin/post-new.php6.90 ▼0.0796.70 ▼1,192.89
Media Library /wp-admin/upload.php3.31 ▲0.0124.10 ▼5.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add to Cart Ajax for Hello Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,884 ▲13016.78 ▲1.109.94 ▲2.282.71 ▼0.09
Dashboard /wp-admin2,897 ▲366.19 ▼0.01117.94 ▼16.08150.65 ▼9.49
Posts /wp-admin/edit.php2,693 ▲53.25 ▲0.0261.61 ▲0.19141.27 ▼1.29
Add New Post /wp-admin/post-new.php1,666 ▲516.66 ▼0.42405.71 ▲2.26151.05 ▼4.00
Media Library /wp-admin/upload.php1,703 ▲55.56 ▲0.04136.79 ▼3.45177.82 ▼11.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: add to cart, ajax, woocommerce, product page, hello elementor

add-to-cart-ajax-for-hello-elementor/index.php 77% from 13 tests

This is the main PHP file of "Add to Cart Ajax for Hello Elementor" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-to-cart-ajax-for-hello-elementor.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin240 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions480.00%
▷ Anonymous functions120.00%
▷ Global constants00.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
There were not PNG files found in your plugin