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
Installer ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▲10.31ms] Passed 4 tests
This is a short check of server-side resources used by Affiliate Bridge
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 48.94 ▲10.11 |
Dashboard /wp-admin | 4.07 ▲0.76 | 68.34 ▲16.45 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 62.81 ▲14.49 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 99.72 ▲0.20 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 58.03 ▲23.25 |
Sources /wp-admin/admin.php?page=affiliate-bridge-sources | 3.96 | 56.45 |
Settings /wp-admin/admin.php?page=affiliate-bridge-backend | 3.96 | 45.86 |
Shortcode Generator /wp-admin/admin.php?page=affiliate-bridge-shortcode | 3.93 | 50.14 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_ab_ebay_tokens |
wp_ab_ebay_categories |
wp_ab_sources |
New WordPress options |
---|
widget_recent-comments |
affiliate-bridge-settings |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Affiliate Bridge: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.39 ▲0.10 | 1.69 ▲0.01 | 43.50 ▲2.88 |
Dashboard /wp-admin | 2,235 ▲61 | 5.62 ▲0.10 | 96.20 ▼4.26 | 43.50 ▼0.22 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.03 ▼0.00 | 37.20 ▲2.14 | 33.47 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,557 ▲28 | 23.16 ▲0.11 | 649.12 ▼33.51 | 55.92 ▲6.90 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.33 ▲0.13 | 93.26 ▼11.95 | 43.45 ▼1.54 |
Sources /wp-admin/admin.php?page=affiliate-bridge-sources | 947 | 1.69 | 29.09 | 24.03 |
Settings /wp-admin/admin.php?page=affiliate-bridge-backend | 938 | 1.83 | 22.75 | 30.09 |
Shortcode Generator /wp-admin/admin.php?page=affiliate-bridge-shortcode | 985 | 1.80 | 26.52 | 34.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=affiliate-bridge-shortcode
- > Notice in wp-content/plugins/affiliate-bridge/includes/sources/ebay/source.php+313
Trying to access array offset on value of type null
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/affiliate-bridge/config.php:10
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: bridge, affiliate, ebay
affiliate-bridge/affiliate-bridge.php Passed 13 tests
The main PHP file in "Affiliate Bridge" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Easily add product images from affiliate programs using shortcodes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin4,387 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 815 | 632 | 4,079 |
CSS | 2 | 32 | 0 | 196 |
Markdown | 1 | 33 | 0 | 73 |
JavaScript | 2 | 2 | 6 | 39 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 18.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 2 | 7.69% |
▷ Concrete classes | 24 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 288 | |
▷ Static methods | 60 | 20.83% |
▷ Public methods | 168 | 58.33% |
▷ Protected methods | 24 | 8.33% |
▷ Private methods | 96 | 33.33% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 63 | |
▷ Global constants | 14 | 22.22% |
▷ Class constants | 49 | 77.78% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.34MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ebay.png | 91.09KB | 93.19KB | 0.00% |
assets/images/screenshot-2.png | 140.40KB | 41.77KB | ▼ 70.25% |
assets/images/aliexpress.png | 30.56KB | 10.05KB | ▼ 67.11% |
assets/images/screenshot-1.png | 87.67KB | 33.60KB | ▼ 61.67% |