Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.43ms] Passed 4 tests
Server-side resources used by AnyTrack for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.46 ▼36.08 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.11 ▼45.88 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.76 ▼42.44 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.98 ▼97.32 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.37 ▼31.71 |
AnyTrack /wp-admin/admin.php?page=waapmain_settings | 2.05 | 5.32 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
waap_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by AnyTrack for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,707 ▼54 | 15.12 ▲0.93 | 0.50 ▼1.18 | 21.81 ▼20.16 |
Dashboard /wp-admin | 2,360 ▲186 | 6.36 ▲0.83 | 104.11 ▲7.51 | 42.11 ▼2.50 |
Posts /wp-admin/edit.php | 2,288 ▲188 | 3.57 ▲1.59 | 46.61 ▲4.92 | 31.22 ▼6.76 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 22.85 ▼0.28 | 624.02 ▼32.62 | 47.24 ▼2.97 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.28 ▲0.08 | 83.18 ▼19.47 | 44.32 ▼1.74 |
AnyTrack /wp-admin/admin.php?page=waapmain_settings | 1,165 | 3.09 | 42.48 | 85.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- waap_options
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=waapmain_settings
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
SRP 50% from 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
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/anytrack-for-woocommerce/anytrack-for-woocommerce.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/anytrack-for-woocommerce/modules/hooks.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/anytrack-for-woocommerce/modules/settings.php:159
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/anytrack-for-woocommerce/modules/scripts.php:73
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
anytrack-for-woocommerce/anytrack-for-woocommerce.php Passed 13 tests
"AnyTrack for WooCommerce" version 1.5.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
Connect with Google, Facebook, Bing, Taboola and Outbrain and sync all your ad campaigns directly from WooCommerce.
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
Success! There were no dangerous files found in this plugin20,463 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 135 | 91 | 10,988 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 4 | 601 | 544 | 2,357 |
Sass | 15 | 36 | 36 | 1,796 |
LESS | 15 | 36 | 46 | 1,786 |
PHP | 6 | 228 | 45 | 865 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 7.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.02MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/inc/assets/css/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
modules/images/logopng.png | 2.14KB | 2.25KB | 0.00% |
modules/inc/assets/css/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |