Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Parse error in wp-content/plugins/affiliate-window-banners/affwinbanners.php+220
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.23ms] Passed 4 tests
This is a short check of server-side resources used by Affiliate Window Banners
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 45.91 ▲2.58 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.61 ▼4.01 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 75.88 ▲28.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.95 ▼9.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.95 ▼5.94 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliate Window Banners
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.76 ▲0.47 | 2.19 ▲0.52 | 42.90 ▼11.63 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲1.01 | 109.65 ▲1.71 | 41.26 ▲1.82 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.05 | 40.02 ▲4.41 | 36.71 ▲3.88 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.37 ▲0.34 | 727.55 ▲51.78 | 63.30 ▲12.35 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▼0.07 | 94.85 ▼7.01 | 42.05 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/affiliate-window-banners/classes/class.cache.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/affiliate-window-banners/classes/class.php5Client.php:30
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/affiliate-window-banners/affwinbanners.php on line 220
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (The basic layout of the product feed to the sidebar. Styling can be done using css.), #2 (The Affiliate Window Banners admin page.)
- Contributors: Contributors not specified
affiliate-window-banners/affwinbanners.php 85% from 13 tests
"Affiliate Window Banners" version 2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 277 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("affiliate-window-banners.php" instead of "affwinbanners.php")
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
Success! There were no dangerous files found in this plugin328 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 115 | 195 | 328 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 2 | 33.33% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.36MB with 0.23MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 127.45KB | 45.78KB | ▼ 64.08% |
screenshot-1.png | 241.54KB | 84.54KB | ▼ 65.00% |