Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.71ms] Passed 4 tests
This is a short check of server-side resources used by Sweet Analytics WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 26.36 ▼11.22 |
Dashboard /wp-admin | 3.46 ▲0.16 | 49.85 ▲1.99 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 48.14 ▲4.40 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 81.26 ▼13.04 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.33 ▲3.45 |
Logs /wp-admin/edit.php?post_type=wp_log | 3.43 | 37.96 |
Tags /wp-admin/edit-tags.php?taxonomy=wp_log_type&post_type=wp_log | 3.51 | 37.00 |
Add New /wp-admin/post-new.php?post_type=wp_log | 3.50 | 49.46 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
SWEET_INIT_SUCCESS |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Sweet Analytics WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,513 ▼233 | 14.32 ▲0.03 | 0.94 ▼0.65 | 13.97 ▼27.29 |
Dashboard /wp-admin | 2,229 ▲49 | 5.62 ▼0.03 | 82.36 ▼1.83 | 36.31 ▼4.31 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▼0.01 | 34.46 ▲0.86 | 33.84 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.54 ▲0.45 | 672.84 ▲11.47 | 71.91 ▲0.27 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.18 ▲0.01 | 98.31 ▲5.69 | 46.58 ▲6.50 |
Logs /wp-admin/edit.php?post_type=wp_log | 1,095 | 1.98 | 30.98 | 27.88 |
Tags /wp-admin/edit-tags.php?taxonomy=wp_log_type&post_type=wp_log | 1,431 | 2.13 | 27.25 | 30.40 |
Add New /wp-admin/post-new.php?post_type=wp_log | 2,256 | 7.63 | 163.00 | 59.76 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- SWEET_INIT_SUCCESS
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function SweetAnalytics\\add_action() in wp-content/plugins/sweet-woocommerce/sweet-tracker-functions.php:171
- > PHP Fatal error
Uncaught Error: Call to undefined function SweetAnalytics\\plugin_dir_path() in wp-content/plugins/sweet-woocommerce/class/setup.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function SweetAnalytics\\register_activation_hook() in wp-content/plugins/sweet-woocommerce/sweet-admin-functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function SweetAnalytics\\plugin_dir_path() in wp-content/plugins/sweet-woocommerce/class/setup.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function SweetAnalytics\\add_action() in wp-content/plugins/sweet-woocommerce/core/Logger.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: insights, ecommerce, analytics, tracking code, sweet...
sweet-woocommerce/sweet-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "Sweet Analytics WooCommerce" version 0.0.6
53 characters long description:
WooCommerce tracking integration with Sweet Analytics
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin830 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 216 | 210 | 697 |
CSS | 1 | 4 | 0 | 99 |
SVG | 4 | 0 | 0 | 25 |
JavaScript | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 8 | 34.78% |
▷ Public methods | 17 | 73.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 26.09% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin