Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.97ms] Passed 4 tests
This is a short check of server-side resources used by Affiliates BuddyPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 42.34 ▲4.07 |
Dashboard /wp-admin | 3.34 ▼0.01 | 51.70 ▼11.63 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.82 ▼6.56 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.09 ▼19.18 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.71 ▼2.52 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Affiliates BuddyPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.72 ▲0.45 | 2.17 ▲0.40 | 42.43 ▼4.25 |
Dashboard /wp-admin | 2,203 ▲29 | 5.63 ▼0.08 | 91.98 ▼9.49 | 44.32 ▼2.60 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▼0.06 | 35.70 ▼4.80 | 34.80 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 23.26 ▲4.91 | 683.11 ▼10.23 | 60.17 ▼10.61 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.11 ▼0.06 | 112.52 ▲5.75 | 46.98 ▼2.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Overview - shows the new Affiliates tab added on the BuddyPress user profile page.), #2 (Submenu - the BuddyPress submenu item.), #3 (Settings - where plugin options are maintained)
affiliates-buddypress/affiliates-buddypress.php Passed 13 tests
The principal PHP file in "Affiliates BuddyPress" v. 1.3.0 is loaded by WordPress automatically on each request
111 characters long description:
Affiliates integration with BuddyPress that allows to display affiliate content in the BuddyPress user profile.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected326 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 104 | 243 |
PO File | 1 | 62 | 154 | 80 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 12 | 100.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.17MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 58.99KB | 16.07KB | ▼ 72.76% |
screenshot-2.png | 22.26KB | 5.66KB | ▼ 74.57% |
screenshot-1.png | 95.97KB | 28.91KB | ▼ 69.88% |