Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/alfieliate-datafeed-installer/alfie-feed.php+140
Trying to access array offset on value of type null
Server metrics [RAM: ▼1.90MB] [CPU: ▼63.32ms] Passed 4 tests
This is a short check of server-side resources used by Alfieliate Wordpress plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.87 ▼46.41 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.01 ▼43.94 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 6.09 ▼37.14 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.60 ▼125.78 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.19 ▼28.71 |
Alfieliate Matching /wp-admin/admin.php?page=manage-matching | 2.11 | 6.07 |
Configuration /wp-admin/admin.php?page=alfie-config | 2.11 | 6.76 |
Alfieliate install filters /wp-admin/admin.php?page=alfie-feed-plugin | 2.11 | 7.07 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 431 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_alfieliate_settings |
wp_alfieliate_products |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Alfieliate Wordpress plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲252 | 13.55 ▼0.82 | 5.50 ▲3.54 | 44.27 ▲0.66 |
Dashboard /wp-admin | 2,263 ▲75 | 5.81 ▼0.00 | 99.58 ▼18.16 | 39.87 ▼3.78 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 2.02 ▼0.01 | 38.30 ▲2.64 | 33.29 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,564 ▲29 | 23.67 ▲0.52 | 669.11 ▼1.60 | 53.45 ▼8.41 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.17 ▼0.04 | 107.72 ▲10.29 | 45.97 ▲4.13 |
Alfieliate Matching /wp-admin/admin.php?page=manage-matching | 881 | 2.02 | 21.83 | 24.63 |
Configuration /wp-admin/admin.php?page=alfie-config | 884 | 2.02 | 23.86 | 29.73 |
Alfieliate install filters /wp-admin/admin.php?page=alfie-feed-plugin | 881 | 2.02 | 23.54 | 23.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_localize_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-ajax-request handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie tables were found after uninstall: 1 table
- wp_alfieliate_settings
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > User notice in wp-includes/functions.php+5905
Function wp_localize_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-ajax-request handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Warning in wp-content/plugins/alfieliate-datafeed-installer/include/puck.php+22
file_get_contents(http://alfieliate.nl/whitelabel/api/getacceptedfiltersfromwebsite/apikey/APIKEY/id/1): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
- > GET request to /wp-admin/admin.php?page=manage-matching
- > Warning in wp-content/plugins/alfieliate-datafeed-installer/include/puck.php+37
file_get_contents(http://alfieliate.nl/whitelabel/api/getmatchings/apikey/APIKEY): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Warning in wp-content/plugins/alfieliate-datafeed-installer/include/install_filter.php+45
Invalid argument supplied for foreach()
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Notice in wp-content/plugins/alfieliate-datafeed-installer/include/alfie-config.php+47
Undefined index: oscimp_hidden
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Notice in wp-content/plugins/alfieliate-datafeed-installer/include/install_filter.php+151
Undefined variable: code
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
- 17× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/dom_data_th.php
- > /wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/dom_data.php
- > /wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/js_data_mixed_types.php
- > /wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/html_table.php
- > /wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/6776.php
- > /wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/-complex_header.php
- > /wp-content/plugins/alfieliate-datafeed-installer/include/filterscript.php
- > /wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/dom_data_two_headers.php
- > /wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/dymanic_table.php
- > /wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/2512.php
- 38× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined index: scripts in wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/-complex_header.php on line 22
- > PHP Notice
Undefined variable: website_id in wp-content/plugins/alfieliate-datafeed-installer/include/filterscript.php on line 129
- > PHP Notice
Undefined variable: website_id in wp-content/plugins/alfieliate-datafeed-installer/include/filterscript.php on line 99
- > PHP Notice
Undefined variable: i in wp-content/plugins/alfieliate-datafeed-installer/include/filterscript.php on line 129
- > PHP Warning
include(): Failed opening 'datatables/mysql.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/performance/large.php on line 3
- > PHP Notice
Undefined index: manage in wp-content/plugins/alfieliate-datafeed-installer/include/manage.php on line 1
- > PHP Notice
Undefined variable: puck in wp-content/plugins/alfieliate-datafeed-installer/include/overview.php on line 14
- > PHP Notice
Undefined variable: s_id in wp-content/plugins/alfieliate-datafeed-installer/include/filterscript.php on line 55
- > PHP Notice
Undefined index: scripts in wp-content/plugins/alfieliate-datafeed-installer/media/unit_testing/templates/dymanic_table.php on line 27
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/alfieliate-datafeed-installer/include/manage.php on line 2
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/css/jslider.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/css/jslider.blue.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/css/jslider.plastic.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/css/jslider.round.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/css/jslider.round.plastic.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/css/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/js/jshashtable-2.1_src.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/js/jquery.numberformatter-1.2.3.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/js/tmpl.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/js/jquery.dependClass-0.1.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/js/draggable-0.1.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/js/jquery.slider.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alfie-feed-plugin
- > Network (severe)
wp-content/plugins/alfieliate/media/js/jquery.dataTables.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== alfieliate-datafeed-installer ===
)
alfieliate-datafeed-installer/alfie-feed.php 92% from 13 tests
This is the main PHP file of "Alfieliate Wordpress plugin" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("alfieliate-datafeed-installer.php" instead of "alfie-feed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin58,836 lines of code in 404 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 359 | 9,290 | 14,934 | 51,149 |
PHP | 29 | 343 | 60 | 5,017 |
HTML | 4 | 18 | 0 | 1,425 |
CSS | 12 | 382 | 214 | 1,245 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
20 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/jslider.plastic.png | 1.39KB | 0.85KB | ▼ 39.14% |
media/images/forward_enabled.png | 1.35KB | 0.58KB | ▼ 56.96% |
media/images/sort_both.png | 1.11KB | 0.29KB | ▼ 74.12% |
media/images/sort_desc_disabled.png | 1.02KB | 0.25KB | ▼ 75.98% |
img/jslider.round.plastic.png | 1.91KB | 1.20KB | ▼ 37.22% |