Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.57ms] Passed 4 tests
This is a short check of server-side resources used by Dealspotr Campaign Tracking for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.24 ▼2.90 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.79 ▼20.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.42 ▼3.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.80 ▼3.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.99 ▲0.17 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Dealspotr Campaign Tracking for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.38 ▲0.08 | 2.17 ▼0.06 | 44.84 ▼1.55 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.10 | 94.69 ▲2.35 | 42.08 ▲4.03 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.06 ▲0.06 | 35.12 ▼3.61 | 33.42 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.21 ▼0.12 | 677.11 ▲13.12 | 64.19 ▼6.52 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.02 | 111.84 ▲11.65 | 48.58 ▲2.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dealspotr-woocommerce-tracking/dealspotr-woocommerce-tracking.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/dealspotr-woocommerce-tracking/classes/class-dealspotr-wc-integration.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Version not formatted correctly
dealspotr-woocommerce-tracking/dealspotr-woocommerce-tracking.php Passed 13 tests
Analyzing the main PHP file in "Dealspotr Campaign Tracking for WooCommerce" version 1.0.0
134 characters long description:
Adds checkout conversion tracking for Dealspotr influencer campaigns, go to "WooCommerce" -> "Settings" -> "Integration" to configure.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected77 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 33 | 77 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 3 | 42.86% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin