Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.41ms] Passed 4 tests
A check of server-side resources used by AffiliateWP - Starting Affiliate ID
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.73 ▼6.49 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.26 ▼2.77 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 44.24 ▼5.02 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.37 ▼15.35 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.51 ▲3.55 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for AffiliateWP - Starting Affiliate ID
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲6 | 14.38 ▼0.18 | 1.83 ▼0.07 | 43.69 ▼1.15 |
Dashboard /wp-admin | 2,201 ▲24 | 5.60 ▼0.00 | 87.40 ▼11.99 | 39.11 ▼5.48 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.04 | 35.82 ▼1.91 | 32.59 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,531 ▼20 | 22.98 ▲4.91 | 610.79 ▼28.20 | 68.62 ▼16.67 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▲0.02 | 101.85 ▼2.83 | 43.56 ▼4.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
1 plugin tags: affiliatewp
affiliatewp-starting-affiliate-id/affiliatewp-starting-affiliate-id.php 85% from 13 tests
The principal PHP file in "AffiliateWP - Starting Affiliate ID" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
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
Success! There were no dangerous files found in this plugin794 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 285 | 1,113 | 780 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.14 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 2 | 28.57% |
▷ Concrete classes | 5 | 71.43% |
▷ Final classes | 1 | 20.00% |
Methods | 81 | |
▷ Static methods | 6 | 7.41% |
▷ Public methods | 37 | 45.68% |
▷ Protected methods | 24 | 29.63% |
▷ Private methods | 20 | 24.69% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 4 | |
▷ Global constants | 4 | 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