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.06MB] [CPU: ▼6.20ms] Passed 4 tests
A check of server-side resources used by Affiliate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 52.18 ▲13.04 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.70 ▼6.89 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 44.56 ▼0.88 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 84.96 ▼20.21 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 33.75 ▲3.18 |
Affiliate /wp-admin/admin.php?page=affiliate-admin | 3.26 | 30.18 |
Settings /wp-admin/admin.php?page=affiliate-settings | 3.25 | 30.11 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Affiliate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.21 ▼1.17 | 1.97 ▲0.14 | 40.01 ▲0.47 |
Dashboard /wp-admin | 2,235 ▲46 | 5.86 ▲0.94 | 99.05 ▼5.89 | 80.99 ▲39.79 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.02 ▲0.02 | 34.68 ▼0.54 | 33.83 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 23.15 ▲0.25 | 742.74 ▲82.44 | 62.93 ▲5.89 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.10 ▼0.08 | 96.41 ▼6.42 | 74.26 ▲25.11 |
Affiliate /wp-admin/admin.php?page=affiliate-admin | 833 | 2.02 | 27.76 | 33.44 |
Settings /wp-admin/admin.php?page=affiliate-settings | 857 | 2.02 | 23.29 | 25.05 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: link, marketer, marketing, affiliate, keyword
affiliate/affiliate.php Passed 13 tests
The primary PHP file in "Affiliate" version 1.12.0 is used by WordPress to initiate all plugin functionality
58 characters long description:
The Affiliate plugin is a toolbox for Affiliate Marketers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected773 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 112 | 409 | 745 |
Bourne Shell | 2 | 0 | 0 | 19 |
CSS | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 34 | 91.89% |
▷ Public methods | 36 | 97.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.70% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 9 | 69.23% |
▷ Class constants | 4 | 30.77% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.29MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 58.73KB | 18.11KB | ▼ 69.16% |
images/link.png | 0.27KB | 0.18KB | ▼ 34.89% |
images/affiliate.png | 0.25KB | 0.16KB | ▼ 37.16% |
screenshot-1.png | 10.27KB | 2.22KB | ▼ 78.42% |
screenshot-5.png | 36.34KB | 9.88KB | ▼ 72.81% |