Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/easy-digital-download-affiliate-banners/includes/widgets.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; eddab_affiliate_banners has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼61.79ms] Passed 4 tests
Server-side resources used by Easy Digital Downloads Affiliate Banners
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.88 ▼41.52 |
Dashboard /wp-admin | 2.10 ▼1.25 | 6.75 ▼57.88 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.02 ▼43.14 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.83 ▼104.62 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.99 ▼34.04 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_eddab_affiliate_banners |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Digital Downloads Affiliate Banners
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.33 | 4.44 ▲2.49 | 40.10 ▼2.41 |
Dashboard /wp-admin | 2,206 ▲21 | 4.87 ▼1.01 | 103.87 ▼0.61 | 38.73 ▼3.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 41.28 ▲3.70 | 34.65 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.08 ▼0.16 | 677.97 ▲2.96 | 50.61 ▼6.21 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.03 | 93.78 ▼16.08 | 41.82 ▼4.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/easy-digital-download-affiliate-banners/includes/widgets.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; eddab_affiliate_banners has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_eddab_affiliate_banners
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 2× 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/easy-digital-download-affiliate-banners/includes/widgets.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-digital-download-affiliate-banners/edd-affiliate-banners.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (16 tag instead of maximum 10)
easy-digital-download-affiliate-banners/edd-affiliate-banners.php 92% from 13 tests
The main PHP script in "Easy Digital Downloads Affiliate Banners" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-digital-download-affiliate-banners.php" instead of "edd-affiliate-banners.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin85 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 31 | 41 | 85 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin