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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.82MB] [CPU: ▼320.58ms] Passed 4 tests
This is a short check of server-side resources used by Adrecord Affiliate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.18 | 61.90 ▲0.22 |
Dashboard /wp-admin | 3.53 ▲0.12 | 35.98 ▲2.63 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 39.76 ▲1.91 |
Add New Post /wp-admin/post-new.php | 3.35 ▼3.62 | 30.98 ▼1,276.54 |
Media Library /wp-admin/upload.php | 3.40 ▲0.11 | 25.56 ▼7.91 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 1 new option
New WordPress options |
---|
Adrecord-Wordpress-Plugin |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Adrecord Affiliate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,832 ▲78 | 15.22 ▼0.45 | 6.55 ▲0.04 | 2.30 ▼1.07 |
Dashboard /wp-admin | 2,929 ▲71 | 6.12 ▼0.06 | 120.85 ▼17.70 | 176.49 ▼29.06 |
Posts /wp-admin/edit.php | 2,728 ▲34 | 3.37 ▲0.13 | 64.51 ▲0.59 | 145.35 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,730 ▼27 | 21.22 ▼0.84 | 441.69 ▼33.44 | 187.49 ▲24.90 |
Media Library /wp-admin/upload.php | 1,738 ▲40 | 5.50 ▲0.01 | 142.24 ▼9.60 | 192.21 ▼3.75 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 1 option
- Adrecord-Wordpress-Plugin
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/adrecord-affiliate/adrecord-affiliate.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: addrecord, adrecord, clean links, affiliate, affiliate marketing
adrecord-affiliate/adrecord-affiliate.php 92% from 13 tests
"Adrecord Affiliate" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,182 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 38 | 56 | 471 |
PHP | 6 | 86 | 121 | 418 |
PO File | 1 | 31 | 47 | 98 |
SVG | 2 | 0 | 1 | 65 |
CSS | 3 | 8 | 7 | 48 |
JSON | 3 | 0 | 0 | 42 |
Markdown | 1 | 9 | 0 | 22 |
HTML | 2 | 3 | 20 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 17 | 77.27% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 3 | 13.64% |
▷ Private methods | 1 | 4.55% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
No PNG files were detected