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.06MB] [CPU: ▲0.46ms] Passed 4 tests
Server-side resources used by Awin Data Feed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 39.46 ▲0.90 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.12 ▼5.09 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.35 ▲4.46 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 100.81 ▲3.56 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.69 ▲2.48 |
Datafeed Guide /wp-admin/admin.php?page=data-feed-guide | 3.23 | 33.67 |
Settings /wp-admin/admin.php?page=datafeed-settings | 3.23 | 35.04 |
Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_datafeed_analytics |
wp_datafeed |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Awin Data Feed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲151 | 13.81 ▼0.53 | 8.40 ▲6.73 | 40.10 ▼4.04 |
Dashboard /wp-admin | 2,232 ▲55 | 5.52 ▼0.08 | 97.17 ▼9.53 | 85.85 ▲43.25 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 1.99 ▲0.03 | 34.36 ▼4.10 | 33.68 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 23.08 ▼0.45 | 766.32 ▲91.83 | 65.38 ▲12.52 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.19 ▲0.00 | 94.77 ▼4.54 | 70.08 ▲24.64 |
Datafeed Guide /wp-admin/admin.php?page=data-feed-guide | 868 | 1.99 | 23.38 | 29.05 |
Settings /wp-admin/admin.php?page=datafeed-settings | 851 | 2.17 | 22.94 | 31.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_widget
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/awin-data-feed/src/Datafeed/Views/Widget/widget.php
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: instance in wp-content/plugins/awin-data-feed/src/Datafeed/Views/Widget/widget.php on line 4
- > PHP Notice
Undefined variable: instance in wp-content/plugins/awin-data-feed/src/Datafeed/Views/Widget/widget.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/awin-data-feed/src/Datafeed/Views/Widget/widget.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/awin-data-feed/src/Datafeed/Models/DBAdapter.php on line 7
- > PHP Notice
Undefined variable: layout in wp-content/plugins/awin-data-feed/src/Datafeed/Views/Widget/widget.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/awin-data-feed/src/Datafeed/Widget.php:5
- > PHP Notice
Undefined variable: instance in wp-content/plugins/awin-data-feed/src/Datafeed/Views/Widget/widget.php on line 7
- > PHP Notice
Undefined variable: layout in wp-content/plugins/awin-data-feed/src/Datafeed/Views/Widget/widget.php on line 11
- > PHP Notice
Undefined variable: layout in wp-content/plugins/awin-data-feed/src/Datafeed/Views/Widget/widget.php on line 11
- > PHP Notice
Undefined variable: layout in wp-content/plugins/awin-data-feed/src/Datafeed/Views/Widget/widget.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: affilinet, awin data feed, shopwindow, zanox, awin...
awin-data-feed/AWDatafeed.php 85% from 13 tests
The entry point to "Awin Data Feed" version 1.8.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awin-data-feed.php" instead of "AWDatafeed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,278 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 251 | 322 | 1,348 |
Markdown | 1 | 58 | 0 | 281 |
PO File | 2 | 96 | 98 | 234 |
CSS | 1 | 22 | 4 | 220 |
JavaScript | 1 | 13 | 0 | 114 |
HTML | 1 | 1 | 0 | 49 |
YAML | 1 | 0 | 1 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.31 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 67 | 81.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 18.29% |
Functions | 13 | |
▷ Named functions | 2 | 15.38% |
▷ Anonymous functions | 11 | 84.62% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 1.78KB | 0.90KB | ▼ 49.29% |