Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▲0.49ms] Passed 4 tests
Analyzing server-side resources used by Affiliate Platform
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 44.44 ▲7.19 |
Dashboard /wp-admin | 3.66 ▲0.35 | 47.28 ▲1.02 |
Posts /wp-admin/edit.php | 3.78 ▲0.41 | 47.57 ▲2.51 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 83.58 ▼5.14 |
Media Library /wp-admin/upload.php | 3.59 ▲0.35 | 36.70 ▲3.56 |
SMDP Referral Platform Settings /wp-admin/options-general.php?page=smdp_Affiliate_platform_settings | 3.58 | 38.49 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_sm_commissions_trans |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
smdp_commtrans_db_version |
widget_recent-posts |
db_upgraded |
smdp_Affiliate_platform_version |
smsudp_db_version |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Affiliate Platform
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲94 | 13.86 ▼0.78 | 9.33 ▲7.52 | 47.79 ▲4.99 |
Dashboard /wp-admin | 2,203 ▲26 | 5.59 ▲0.06 | 85.27 ▼6.74 | 39.35 ▼7.45 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▼0.01 | 35.05 ▲1.00 | 34.45 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.34 ▲0.36 | 626.70 ▼55.00 | 50.98 ▼6.48 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.23 ▲0.01 | 97.01 ▼12.09 | 45.00 ▼2.82 |
SMDP Referral Platform Settings /wp-admin/options-general.php?page=smdp_Affiliate_platform_settings | 1,029 | 3.18 | 47.80 | 30.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_sm_commissions_trans
- This plugin did not uninstall successfully, leaving 9 options in the database
- smdp_commtrans_db_version
- smdp_Affiliate_platform_version
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- smsudp_db_version
- widget_theysaidso_widget
Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files
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 97% 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:
- Screenshots: Please describe screenshot #5 in smdp-affiliate-platform/assets to your readme.txt
smdp-affiliate-platform/smdp-affiliate-platform.php Passed 13 tests
The entry point to "Affiliate Platform" version 1.4.8 is a PHP file that has certain tags in its header comment area
49 characters long description:
Plugin for woo adding referral links to products.
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
There were no executable files found in this plugin1,727 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 984 | 731 | 1,640 |
JavaScript | 5 | 16 | 6 | 55 |
PO File | 1 | 8 | 9 | 31 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 22.40 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 37 | 94.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.13% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin