Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼297.95ms] Passed 4 tests
A check of server-side resources used by Adservice - Affiliate Network
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.14 | 52.66 ▲1.42 |
Dashboard /wp-admin | 3.49 ▲0.09 | 33.88 ▼11.19 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 38.57 ▲0.28 |
Add New Post /wp-admin/post-new.php | 6.99 ▼0.01 | 95.03 ▼1,182.30 |
Media Library /wp-admin/upload.php | 3.37 ▲0.08 | 25.54 ▲1.68 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Adservice - Affiliate Network
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,856 ▲102 | 16.19 ▲0.20 | 6.63 ▲0.75 | 3.09 ▲0.29 |
Dashboard /wp-admin | 2,947 ▲86 | 6.23 ▼0.09 | 119.20 ▼15.51 | 136.25 ▼21.20 |
Posts /wp-admin/edit.php | 2,743 ▲52 | 3.25 ▲0.01 | 64.92 ▼0.12 | 117.21 ▼30.79 |
Add New Post /wp-admin/post-new.php | 1,688 ▲27 | 21.20 ▲5.11 | 426.87 ▲17.66 | 183.84 ▲27.39 |
Media Library /wp-admin/upload.php | 1,754 ▲62 | 5.54 ▲0.01 | 149.20 ▲15.10 | 203.92 ▲23.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/adservice-affiliate-network-tracking/admin/partials/astrk-admin-display.php
- > /wp-content/plugins/adservice-affiliate-network-tracking/public/partials/astrk-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/adservice-affiliate-network-tracking/index.php:2
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: tracking, marketing, affiliate, conversion, adservice...
adservice-affiliate-network-tracking/astrk.php 77% from 13 tests
The entry point to "Adservice - Affiliate Network" version 1.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("adservice-affiliate-network-tracking.php" instead of "astrk.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 218 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.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
Good job! No executable or dangerous file extensions detected1,571 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 252 | 609 | 1,200 |
CSS | 2 | 51 | 11 | 363 |
JavaScript | 2 | 4 | 54 | 6 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 5 | 17.24% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/info.png | 15.26KB | 13.40KB | ▼ 12.21% |
images/logo.png | 5.18KB | 2.58KB | ▼ 50.24% |