Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-ajax-social/wp-ajax-social.php+71
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.24ms] Passed 4 tests
A check of server-side resources used by Wordpress Ajax Social
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.71 ▼39.39 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.23 ▼39.35 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.09 ▼42.01 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.57 ▼84.20 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.21 ▼28.37 |
WP Ajax Social /wp-admin/options-general.php?page=wp-ajax-social | 2.05 | 6.05 |
Server storage [IO: ▲0.19MB] [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: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wordpress Ajax Social
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲130 | 13.59 ▼0.70 | 7.67 ▲5.54 | 36.06 ▼8.98 |
Dashboard /wp-admin | 2,229 ▲41 | 4.94 ▲0.08 | 103.40 ▼2.70 | 38.87 ▼3.88 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.21 ▲0.16 | 39.44 ▼0.94 | 34.54 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.24 ▲5.04 | 626.01 ▲17.93 | 60.35 ▲1.11 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.24 ▲0.09 | 97.66 ▼8.90 | 42.33 ▼0.66 |
WP Ajax Social /wp-admin/options-general.php?page=wp-ajax-social | 1,334 | 2.00 | 39.42 | 67.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-ajax-social/wp-ajax-social.php+71
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > Deprecated in wp-content/plugins/wp-ajax-social/wp-ajax-social.php+71
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_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 jquery-form handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style 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-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > Notice in wp-content/plugins/wp-ajax-social/inc/admin_core.php+408
Undefined index: wp_ajax_social_submit
- 17 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > Notice in wp-content/plugins/wp-ajax-social/inc/admin_core.php+619
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-ajax-social/wp-ajax-social.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > Network (severe)
wp-ajax-social/images/facebook.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > Network (severe)
wp-ajax-social/images/google_plus.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > Network (severe)
wp-ajax-social/images/twitter.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-ajax-social/js/my-script.js?ver=6.3.1:4:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=wp-ajax-social:105:69)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-ajax-social
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: social, facebook, twitter, social icons, pinterest
wp-ajax-social/wp-ajax-social.php 92% from 13 tests
The primary PHP file in "Wordpress Ajax Social" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 687 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,196 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 589 | 55 | 1,089 |
CSS | 1 | 2 | 1 | 81 |
JavaScript | 1 | 9 | 19 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/hs.png | 2.62KB | 7.54KB | 0.00% |
images/gp_medium_bubble.png | 1.14KB | 0.88KB | ▼ 22.67% |
images/hv.png | 2.80KB | 7.32KB | 0.00% |
images/gp_small_none.png | 0.68KB | 0.67KB | ▼ 0.87% |
images/gp_medium_inline.png | 4.96KB | 2.60KB | ▼ 47.68% |