Benchmarks
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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.10ms] Passed 4 tests
A check of server-side resources used by WooCommerce Ajaxified Cart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.55 ▲2.08 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.21 ▼0.41 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.23 ▲5.16 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.22 ▼19.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.88 ▼2.65 |
Ajaxified Cart /wp-admin/options-general.php?page=abwc_ajaxified_settings | 3.22 | 33.39 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Ajaxified Cart
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲114 | 13.45 ▼0.90 | 8.36 ▲6.60 | 40.29 ▼4.28 |
Dashboard /wp-admin | 2,226 ▲46 | 5.66 ▲0.06 | 84.61 ▼3.77 | 39.02 ▼2.26 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.98 ▲0.02 | 41.33 ▲5.11 | 35.10 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 18.12 ▼4.84 | 599.20 ▼56.57 | 80.26 ▲32.29 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.19 ▲0.07 | 97.80 ▼16.85 | 43.40 ▼4.90 |
Ajaxified Cart /wp-admin/options-general.php?page=abwc_ajaxified_settings | 815 | 1.69 | 26.32 | 27.70 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: ajax, cart, woocommerce
ajaxified-cart-woocommerce/wc-ajax-cart.php 85% from 13 tests
"WooCommerce Ajaxified Cart" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ajaxified-cart-woocommerce.php" instead of "wc-ajax-cart.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin549 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 119 | 444 | 266 |
JavaScript | 6 | 89 | 113 | 262 |
JSON | 1 | 0 | 0 | 11 |
PO File | 1 | 4 | 5 | 10 |
CSS | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin