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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.69ms] Passed 4 tests
Server-side resources used by Pop-Up Ajax Cart for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.23 ▼2.14 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.97 ▼14.49 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.96 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.32 ▼17.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.75 ▲2.64 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pop-Up Ajax Cart for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.63 ▲0.20 | 1.72 ▼0.00 | 43.69 ▲1.57 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.04 | 83.38 ▼17.96 | 39.71 ▲0.20 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.03 ▲0.01 | 36.30 ▼4.10 | 35.68 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.48 ▲0.37 | 684.84 ▼3.36 | 55.08 ▼6.48 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.01 | 96.97 ▼15.23 | 45.10 ▼3.42 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/puacw-wc-cart/public/partials/puacw-display-pop-up.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/puacw-wc-cart/public/partials/puacw-display-basket-counter.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, pop-up, ajax, cart
puacw-wc-cart/puacw-woo-cart.php 85% from 13 tests
"Pop-Up Ajax Cart for Woocommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("puacw-wc-cart.php" instead of "puacw-woo-cart.php")
- 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected884 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 158 | 595 | 510 |
CSS | 2 | 37 | 8 | 233 |
JavaScript | 2 | 12 | 5 | 86 |
PO File | 1 | 19 | 27 | 55 |
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 code | 0.17 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 35 | 81.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 18.60% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin