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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.59ms] Passed 4 tests
A check of server-side resources used by Async Social Sharing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.28 ▼4.23 |
Dashboard /wp-admin | 3.34 ▲0.04 | 54.33 ▲0.54 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.58 ▼5.04 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.36 ▼18.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.29 ▼2.63 |
Async Sharing Options /wp-admin/options-general.php?page=async-social-sharing/async-share.php | 3.26 | 38.60 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Async Social Sharing: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.57 ▼0.80 | 8.98 ▲5.67 | 41.07 ▼2.67 |
Dashboard /wp-admin | 2,213 ▲22 | 5.90 ▲1.06 | 100.45 ▼12.30 | 39.97 ▼4.93 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▲0.00 | 40.80 ▼3.03 | 34.92 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 18.33 ▼4.71 | 649.35 ▼14.42 | 56.79 ▲3.75 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.15 ▼0.03 | 96.39 ▼14.20 | 44.14 ▼1.98 |
Async Sharing Options /wp-admin/options-general.php?page=async-social-sharing/async-share.php | 936 | 2.19 | 24.49 | 25.53 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/async-social-sharing/views/admin-view.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/async-social-sharing/views/output-view.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/async-social-sharing/includes/admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/async-social-sharing/async-share.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Social Sharing widgets are loaded under posts), #2 (Plugin Options page allows you to specify the social sharing widgets to load), #3 (Scripts now load in asynchronous fashion after the page load completes)
- Plugin Name: You should set the name of your plugin on the first line (
=== async-social-sharing ===
)
async-social-sharing/async-share.php 85% from 13 tests
The entry point to "Async Social Sharing" version 1.8.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 224 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("async-social-sharing.php" instead of "async-share.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected873 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 4 | 3 | 412 |
PHP | 5 | 83 | 134 | 317 |
Markdown | 1 | 85 | 0 | 107 |
JavaScript | 1 | 3 | 28 | 37 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 1 | 7.14% |
▷ Private methods | 2 | 14.29% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
7 PNG files occupy 0.42MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/async-social-example.png | 9.48KB | 3.69KB | ▼ 61.08% |
screenshot-2.png | 222.43KB | 60.10KB | ▼ 72.98% |
assets/images/async-icon.png | 1.55KB | 0.61KB | ▼ 60.78% |
async-social-sharing-performance.png | 61.85KB | 20.69KB | ▼ 66.55% |
screenshot-3.png | 61.85KB | 20.69KB | ▼ 66.55% |