Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/affiliate-press/includes/class-items-table.php+182
Declaration of itemsTable::prepare_items($data) should be compatible with WP_List_Table::prepare_items()
Server metrics [RAM: ▼1.96MB] [CPU: ▼48.96ms] Passed 4 tests
Analyzing server-side resources used by Affiliate Press
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.94 ▼32.43 |
Dashboard /wp-admin | 2.05 ▼1.25 | 6.45 ▼40.20 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.32 ▼40.82 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.88 ▼82.38 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.59 ▼25.97 |
Feeds /wp-admin/admin.php?page=affiliate_press_feeds | 2.05 | 5.98 |
Add New Feed /wp-admin/admin.php?page=affiliate_press_add | 2.05 | 5.57 |
Dashboard /wp-admin/admin.php?page=affiliate_press | 2.05 | 6.98 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=product | 2.05 | 6.28 |
Add New /wp-admin/post-new.php?post_type=product | 2.05 | 6.09 |
All Products /wp-admin/edit.php?post_type=product | 2.05 | 6.36 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=product | 2.05 | 6.60 |
Add New Feed Wizard /wp-admin/admin.php?page=affiliate_press_add_wizard | 2.05 | 5.45 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_apfeeds |
wp_apprices |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
category_children |
widget_recent-posts |
widget_recent-comments |
LDB_Affiliate_Press_Version |
can_compress_scripts |
widget_theysaidso_widget |
LDB_Affiliate_Press_Pointers |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliate Press
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲139 | 13.55 ▼1.03 | 1.72 ▼0.06 | 40.10 ▼6.21 |
Dashboard /wp-admin | 2,280 ▲92 | 4.96 ▼0.94 | 100.23 ▼14.98 | 87.64 ▲46.87 |
Posts /wp-admin/edit.php | 2,160 ▲68 | 2.05 ▲0.02 | 36.06 ▼1.51 | 31.86 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,754 ▲240 | 22.91 ▲5.38 | 697.76 ▲49.53 | 30.87 ▼13.03 |
Media Library /wp-admin/upload.php | 1,459 ▲71 | 4.27 ▲0.08 | 97.24 ▲3.60 | 78.09 ▲36.88 |
Feeds /wp-admin/admin.php?page=affiliate_press_feeds | 1,193 | 4.78 | 51.61 | 65.41 |
Add New Feed /wp-admin/admin.php?page=affiliate_press_add | 1,230 | 4.88 | 57.47 | 65.29 |
Dashboard /wp-admin/admin.php?page=affiliate_press | 1,104 | 4.76 | 53.81 | 70.08 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=product | 1,378 | 2.22 | 26.90 | 31.82 |
Add New /wp-admin/post-new.php?post_type=product | 2,902 | 10.35 | 205.62 | 117.57 |
All Products /wp-admin/edit.php?post_type=product | 1,255 | 1.95 | 33.42 | 31.07 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=product | 1,514 | 2.35 | 25.71 | 36.52 |
Add New Feed Wizard /wp-admin/admin.php?page=affiliate_press_add_wizard | 1,061 | 4.72 | 46.45 | 46.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/affiliate-press/includes/class-items-table.php+182
Declaration of itemsTable::prepare_items($data) should be compatible with WP_List_Table::prepare_items()
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_apfeeds
- wp_apprices
- This plugin does not fully uninstall, leaving 9 options in the database
- LDB_Affiliate_Press_Version
- LDB_Affiliate_Press_Pointers
- category_children
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=affiliate_press_add_wizard
- > Warning in wp-content/plugins/affiliate-press/includes/class-items-table.php+182
Declaration of itemsTable::prepare_items($data) should be compatible with WP_List_Table::prepare_items()
SRP 50% 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
Almost there! Just fix the following items
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affiliate-press/views/sidebar.php:5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/affiliate-press/includes/class-items-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affiliate-press/views/feed-add.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affiliate-press/views/feed-index.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/affiliate-press/includes/class-feeds-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affiliate-press/views/feed-linkto.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliate-press/includes/class-feeds-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affiliate-press/views/feed-edit.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/affiliate-press/views/feed-view.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/affiliate-press/includes/class-items-table.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: feeds, affiliate, affiliates, product, product feeds...
affiliate-press/affiliate-press.php Passed 13 tests
The primary PHP file in "Affiliate Press" version 0.3.8 is used by WordPress to initiate all plugin functionality
98 characters long description:
Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3.
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
There were no executable files found in this plugin1,576 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 123 | 68 | 1,439 |
CSS | 1 | 29 | 0 | 128 |
JavaScript | 2 | 0 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/facebook.png | 1.54KB | 1.00KB | ▼ 35.06% |
images/icon32.png | 1.92KB | 0.64KB | ▼ 66.84% |
images/close.png | 1.11KB | 0.23KB | ▼ 78.80% |
images/mail.png | 1.41KB | 0.82KB | ▼ 41.63% |
images/icon16.png | 1.31KB | 0.39KB | ▼ 70.42% |