Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.56ms] Passed 4 tests
A check of server-side resources used by Affiliate Sales in Google Analytics and other tools
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.50 ▼4.66 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.47 ▼6.80 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.52 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.50 ▼3.70 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.78 ▲2.14 |
WeCanTrack /wp-admin/admin.php?page=wecantrack | 3.31 | 32.36 |
Redirect Page /wp-admin/admin.php?page=wecantrack-redirect-page | 3.31 | 34.28 |
Settings /wp-admin/admin.php?page=wecantrack-advanced-settings | 3.31 | 31.18 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 19 new options
New WordPress options |
---|
wecantrack_referrer_cookie_status |
widget_theysaidso_widget |
wecantrack_snippet_version |
can_compress_scripts |
wecantrack_custom_redirect_html |
wecantrack_fetch_expiration |
wecantrack_api_key |
widget_recent-comments |
theysaidso_admin_options |
wecantrack_snippet |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliate Sales in Google Analytics and other tools
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 14.47 ▲0.09 | 1.56 ▼0.26 | 38.09 ▼12.19 |
Dashboard /wp-admin | 2,236 ▲48 | 5.80 ▼0.10 | 112.09 ▼3.94 | 78.99 ▲32.30 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.00 ▼0.04 | 39.25 ▲3.09 | 37.62 ▲3.13 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 18.47 ▲0.98 | 690.20 ▲9.82 | 66.76 ▲9.40 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.25 ▲0.00 | 97.19 ▼1.77 | 71.26 ▲25.85 |
WeCanTrack /wp-admin/admin.php?page=wecantrack | 1,022 | 1.76 | 24.59 | 26.83 |
Redirect Page /wp-admin/admin.php?page=wecantrack-redirect-page | 1,008 | 1.72 | 24.23 | 30.79 |
Settings /wp-admin/admin.php?page=wecantrack-advanced-settings | 978 | 1.86 | 27.13 | 24.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- wecantrack_referrer_cookie_status
- db_upgraded
- 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wecantrack/wecantrack.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wecantrack/views/redirect_page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wecantrack/views/advanced_settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wecantrack/views/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wecantrack/wecantrack.php 92% from 13 tests
Analyzing the main PHP file in "Affiliate Sales in Google Analytics and other tools" version 1.4.5
The following require your attention:
- Requires PHP: The required version number must match the one declared in readme.txt ("5.6.20" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,506 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 210 | 162 | 1,111 |
JavaScript | 3 | 38 | 24 | 246 |
CSS | 1 | 12 | 1 | 66 |
SVG | 1 | 0 | 0 | 66 |
Markdown | 1 | 13 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 37.75 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 43 | |
▷ Static methods | 20 | 46.51% |
▷ Public methods | 33 | 76.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 23.26% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/favicon2.png | 6.05KB | 3.87KB | ▼ 36.01% |
images/favicon.png | 1.36KB | 0.91KB | ▼ 32.85% |