Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.42ms] Passed 4 tests
A check of server-side resources used by Connects - Tracking for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.18 ▲1.36 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.02 ▼2.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.56 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.38 ▼17.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.73 ▲1.82 |
Connects Tracking Settings /wp-admin/options-general.php?page=connects-tracking-settings | 3.26 | 32.07 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Connects - Tracking for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.55 ▼0.73 | 5.64 ▲3.78 | 41.94 ▼0.82 |
Dashboard /wp-admin | 2,217 ▲29 | 5.88 ▲0.02 | 98.85 ▼1.74 | 41.92 ▼2.51 |
Posts /wp-admin/edit.php | 2,079 ▼10 | 2.00 ▼0.00 | 34.72 ▼0.47 | 35.26 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,521 ▼13 | 17.61 ▼5.68 | 631.64 ▼26.84 | 54.15 ▼12.29 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.20 ▼0.04 | 95.35 ▼3.98 | 40.83 ▼5.02 |
Connects Tracking Settings /wp-admin/options-general.php?page=connects-tracking-settings | 857 | 2.01 | 24.35 | 42.86 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/connects-tracking/public/partials/connects-tracking-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant CONNECTS_TRACKING_VERSION - assumed 'CONNECTS_TRACKING_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/connects-tracking/admin/partials/connects-tracking-admin-display.php on line 22
- > PHP Warning
Use of undefined constant LOGO_URL - assumed 'LOGO_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/connects-tracking/admin/partials/connects-tracking-admin-display.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Connects_Tracking' not found in wp-content/plugins/connects-tracking/admin/partials/connects-tracking-admin-display.php:26
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Contributors: Contributors not specified
- Contributors: The plugin tags were not defined
connects-tracking/connects-tracking.php Passed 13 tests
Analyzing the main PHP file in "Connects - Tracking for WooCommerce" version 1.1.7
92 characters long description:
This Plugin can be used to integrate the Connects Conversion Tracking and the Profiling Tags
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin499 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 180 | 587 | 497 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 39 | |
▷ Static methods | 5 | 12.82% |
▷ Public methods | 33 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.38% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/connects_logo.png | 13.59KB | 5.45KB | ▼ 59.87% |