Benchmarks
Plugin footprint 82% from 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: ▲5.03MB] [CPU: ▲25.35ms] 50% from 4 tests
An overview of server-side resources used by Guest Author Affiliate
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,227.03ms on /wp-admin/options-general.php?page=guest_author_affiliate_settings)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.03MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.42 | 64.21 ▲20.64 |
Dashboard /wp-admin | 8.90 ▲5.60 | 75.98 ▲26.79 |
Posts /wp-admin/edit.php | 8.90 ▲5.55 | 71.90 ▲19.46 |
Add New Post /wp-admin/post-new.php | 9.45 ▲3.57 | 130.08 ▲38.73 |
Media Library /wp-admin/upload.php | 8.90 ▲5.68 | 65.76 ▲34.49 |
Guest Author Affiliate /wp-admin/options-general.php?page=guest_author_affiliate_settings | 8.91 | 1,227.03 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.90 | 57.62 |
Server storage [IO: ▲3.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 214 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
fs_active_plugins |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
fs_accounts |
fs_debug_mode |
widget_recent-comments |
widget_recent-posts |
guest_author_affiliate_version |
Browser metrics Passed 4 tests
A check of browser resources used by Guest Author Affiliate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲215 | 14.05 ▼0.33 | 5.26 ▲3.24 | 33.02 ▼14.60 |
Dashboard /wp-admin | 2,248 ▲63 | 6.05 ▲1.04 | 108.97 ▼5.76 | 46.64 ▲0.90 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.01 ▼0.04 | 41.88 ▲3.14 | 39.90 ▲6.53 |
Add New Post /wp-admin/post-new.php | 1,552 ▲18 | 18.31 ▼4.90 | 604.13 ▼65.52 | 50.85 ▲0.86 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.23 ▲0.04 | 97.23 ▼2.51 | 45.68 ▲0.77 |
Guest Author Affiliate /wp-admin/options-general.php?page=guest_author_affiliate_settings | 1,203 | 3.20 | 48.66 | 93.68 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,086 | 2.23 | 24.31 | 25.11 |
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
- Zombie WordPress options detected upon uninstall: 10 options
- theysaidso_admin_options
- can_compress_scripts
- fs_debug_mode
- widget_recent-posts
- guest_author_affiliate_version
- widget_recent-comments
- widget_theysaidso_widget
- fs_active_plugins
- fs_accounts
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 Passed 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: affiliate marketing, affiliate, affiliates manager, affiliate plugin, guest author...
guest-author-affiliate/guest-author-affiliate.php Passed 13 tests
The entry point to "Guest Author Affiliate" version 1.1.6 is a PHP file that has certain tags in its header comment area
62 characters long description:
Allows your site's content creators to become your affiliates.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected34,963 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,389 | 18,086 | 34,507 |
JavaScript | 8 | 53 | 80 | 274 |
JSON | 1 | 0 | 0 | 129 |
SVG | 1 | 0 | 1 | 40 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 82.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,347 | |
▷ Static methods | 214 | 15.89% |
▷ Public methods | 952 | 70.68% |
▷ Protected methods | 17 | 1.26% |
▷ Private methods | 378 | 28.06% |
Functions | 105 | |
▷ Named functions | 104 | 99.05% |
▷ Anonymous functions | 1 | 0.95% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.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
6 PNG files occupy 0.41MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 210.91KB | 3.52KB | ▼ 98.33% |
assets/banner-772x250.png | 20.97KB | 9.38KB | ▼ 55.27% |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/icon-128x128.png | 83.39KB | 2.55KB | ▼ 96.95% |
assets/banner-1544x500.png | 86.71KB | 32.44KB | ▼ 62.59% |