Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.34MB] [CPU: ▼7.12ms] 75% from 4 tests
Analyzing server-side resources used by Fast Affiliate
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 10,036.95ms on /wp-admin/admin.php?page=fast_affiliate_stock)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 41.58 ▼5.71 |
Dashboard /wp-admin | 3.80 ▲0.49 | 46.79 ▼2.37 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 45.24 ▼3.50 |
Add New Post /wp-admin/post-new.php | 5.88 ▼0.01 | 73.09 ▼16.91 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 38.37 ▲7.23 |
Performance /wp-admin/admin.php?page=fast_affiliate_performance | 3.63 | 35.30 |
Configuration /wp-admin/admin.php?page=fast_affiliate_admin | 3.63 | 29.89 |
Stock /wp-admin/admin.php?page=fast_affiliate_stock | 3.62 | 10,036.95 |
Server storage [IO: ▲2.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_f_a_link_performance |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_fast_affiliate_widget2 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fast Affiliate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲173 | 13.70 ▼0.88 | 10.90 ▲8.72 | 38.26 ▼8.87 |
Dashboard /wp-admin | 2,252 ▲73 | 5.93 ▲0.98 | 96.58 ▼19.90 | 40.48 ▼5.86 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.08 ▲0.09 | 36.07 ▼1.78 | 33.94 ▲0.02 |
Add New Post /wp-admin/post-new.php | 6,567 ▲5,025 | 28.50 ▲10.25 | 961.14 ▲306.45 | 37.74 ▼13.64 |
Media Library /wp-admin/upload.php | 1,425 ▲34 | 4.22 ▼0.02 | 98.47 ▼1.97 | 42.02 ▼0.59 |
Performance /wp-admin/admin.php?page=fast_affiliate_performance | 809 | 2.15 | 26.77 | 31.47 |
Configuration /wp-admin/admin.php?page=fast_affiliate_admin | 837 | 2.09 | 25.41 | 24.51 |
Stock /wp-admin/admin.php?page=fast_affiliate_stock | 806 | 2.14 | 26.08 | 27.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_f_a_link_performance
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_fast_affiliate_widget2
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fast_affiliate_stock
- > Warning in wp-content/plugins/fast-affiliate/admin/fast-affiliate-stock.php+28
count(): Parameter must be an array or an object that implements Countable
SRP 0% from 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fast-affiliate/admin/partials/fast-affiliate-admin-display.php
- > /wp-content/plugins/fast-affiliate/public/partials/fast-affiliate-public-display.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fast-affiliate/includes/fast-affiliate-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fast-affiliate/includes/fast-affiliate-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fast-affiliate/includes/class-fast-affiliate-activator.php:2
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in fast-affiliate/assets to your readme.txt
fast-affiliate/fast_affiliate.php 92% from 13 tests
The entry point to "Fast Affiliate" version 1.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("fast-affiliate.php" instead of "fast_affiliate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,180 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 504 | 721 | 2,120 |
CSS | 2 | 63 | 23 | 405 |
PO File | 2 | 152 | 198 | 332 |
JavaScript | 3 | 89 | 29 | 323 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 67 | |
▷ Named functions | 67 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 2.22MB with 1.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 422.92KB | 131.78KB | ▼ 68.84% |
assets/banner-772x250.png | 25.87KB | 9.83KB | ▼ 62.00% |
includes/images/fnac_es.png | 2.58KB | 1.27KB | ▼ 50.72% |
includes/images/nologo.png | 1.89KB | 0.89KB | ▼ 52.72% |
assets/icon-128x128.png | 8.21KB | 3.26KB | ▼ 60.26% |