Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.19 | 52.00 ▲3.31 |
Dashboard /wp-admin | 3.43 ▲0.02 | 35.20 ▲3.84 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.07 ▲0.27 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 96.70 ▼1,192.89 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,884 ▲130 | 16.78 ▲1.10 | 9.94 ▲2.28 | 2.71 ▼0.09 |
Dashboard /wp-admin | 2,897 ▲36 | 6.19 ▼0.01 | 117.94 ▼16.08 | 150.65 ▼9.49 |
Posts /wp-admin/edit.php | 2,693 ▲5 | 3.25 ▲0.02 | 61.61 ▲0.19 | 141.27 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,666 ▲5 | 16.66 ▼0.42 | 405.71 ▲2.26 | 151.05 ▼4.00 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.56 ▲0.04 | 136.79 ▼3.45 | 177.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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 114 | 18 | 238 |
JavaScript | 1 | 0 | 1 | 2 |
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 code | 0.62 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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