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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.03ms] Passed 4 tests
A check of server-side resources used by Cross Domain Tracker for AffiliateWP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.39 ▲0.11 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.07 ▲0.84 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.61 ▼2.53 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 99.58 ▲10.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.75 ▼2.55 |
Cross Domain Tracker for AffiliateWP /wp-admin/options-general.php?page=external-visits | 3.22 | 36.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
cdtawp_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Cross Domain Tracker for AffiliateWP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.70 ▲0.27 | 1.86 ▲0.27 | 42.37 ▼5.65 |
Dashboard /wp-admin | 2,193 ▲13 | 5.57 ▼0.02 | 84.46 ▼5.23 | 41.52 ▼3.04 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.02 | 40.68 ▲0.42 | 36.22 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,540 ▲5 | 18.01 ▼0.20 | 643.59 ▼46.81 | 66.91 ▼3.26 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.18 ▼0.04 | 104.75 ▼5.98 | 46.65 ▲2.72 |
Cross Domain Tracker for AffiliateWP /wp-admin/options-general.php?page=external-visits | 955 | 2.05 | 26.34 | 30.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- cdtawp_settings
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cross-domain-tracker-for-affiliatewp/includes/class-affiliate-wp-track-external-visits.php:597
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2 in cross-domain-tracker-for-affiliatewp/assets to your readme.txt
cross-domain-tracker-for-affiliatewp/cross-domain-tracker-for-affiliatewp.php 69% from 13 tests
Analyzing the main PHP file in "Cross Domain Tracker for AffiliateWP" version 1.0.4
The following require your attention:
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "3.0")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
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
No dangerous file extensions were detected571 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 145 | 272 | 472 |
JavaScript | 2 | 11 | 0 | 99 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 27 | 87.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.90% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
PNG images were not found in this plugin