Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > 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.83MB] [CPU: ▼57.29ms] Passed 4 tests
A check of server-side resources used by AnyTrack Affiliate Link Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 7.04 ▼38.93 |
Dashboard /wp-admin | 2.17 ▼1.13 | 8.38 ▼43.85 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 7.62 ▼47.20 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.71 | 8.87 ▼99.17 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 7.18 ▼32.50 |
Property Settings /wp-admin/edit.php?post_type=custom_redirect&page=aalmredirects_seetings | 2.18 | 9.68 |
Affiliate Links Manager /wp-admin/edit.php?post_type=custom_redirect | 2.18 | 8.26 |
Add New /wp-admin/post-new.php?post_type=custom_redirect | 2.18 | 10.05 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AnyTrack Affiliate Link Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,418 ▲657 | 16.51 ▲2.14 | 14.51 ▲12.81 | 40.40 ▼6.01 |
Dashboard /wp-admin | 2,379 ▲202 | 6.19 ▲0.56 | 96.86 ▲5.08 | 36.86 ▼9.94 |
Posts /wp-admin/edit.php | 2,378 ▲278 | 3.36 ▲1.35 | 45.24 ▲6.13 | 30.90 ▼4.78 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 22.95 ▼0.07 | 575.61 ▼60.72 | 35.59 ▼12.61 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.06 ▼0.12 | 83.28 ▼22.04 | 40.93 ▼3.78 |
Property Settings /wp-admin/edit.php?post_type=custom_redirect&page=aalmredirects_seetings | 1,183 | 2.98 | 39.72 | 26.83 |
Affiliate Links Manager /wp-admin/edit.php?post_type=custom_redirect | 1,407 | 3.29 | 46.02 | 29.93 |
Add New /wp-admin/post-new.php?post_type=custom_redirect | 1,783 | 3.54 | 61.22 | 33.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > 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.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=custom_redirect
- > 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.)
- > GET request to /wp-admin/post-new.php?post_type=custom_redirect
- > Notice in wp-content/plugins/anytrack-affiliate-link-manager/modules/meta_box.php+62
Undefined index: post_type
- > GET request to /wp-admin/post-new.php?post_type=custom_redirect
- > Notice in wp-content/plugins/anytrack-affiliate-link-manager/modules/meta_box.php+76
Undefined index: source_url
- > GET request to /wp-admin/post-new.php?post_type=custom_redirect
- > Notice in wp-content/plugins/anytrack-affiliate-link-manager/modules/meta_box.php+76
Undefined index: target_url
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
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/anytrack-affiliate-link-manager/anytrack-affiliate-link-manager.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/anytrack-affiliate-link-manager/modules/hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/anytrack-affiliate-link-manager/modules/meta_box.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/anytrack-affiliate-link-manager/modules/cpt.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/anytrack-affiliate-link-manager/modules/settings.php:145
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/anytrack-affiliate-link-manager/modules/ajax.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/anytrack-affiliate-link-manager/modules/scripts.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: affiliate link management, cj affiliates, anytrack, redirection, partnerize...
anytrack-affiliate-link-manager/anytrack-affiliate-link-manager.php Passed 13 tests
The principal PHP file in "AnyTrack Affiliate Link Manager" v. 1.0.3 is loaded by WordPress automatically on each request
83 characters long description:
Generate safe and nicer offer links with built-in support for the AnyTrack tracker.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin9,370 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 5 | 7 | 8,196 |
PHP | 9 | 318 | 61 | 972 |
PO File | 1 | 347 | 720 | 107 |
JavaScript | 2 | 42 | 8 | 95 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 7 | 50.00% |
▷ Anonymous functions | 7 | 50.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/inc/assets/css/glyphicons-halflings-white.png | 7.38KB | 8.01KB | 0.00% |
modules/inc/assets/css/glyphicons-halflings.png | 9.02KB | 9.70KB | 0.00% |