Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.80ms] Passed 4 tests
This is a short check of server-side resources used by Social Sharer for WooComerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.76 ▲1.35 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.42 ▼1.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.78 ▼5.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.23 ▼1.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.84 ▲1.10 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Social Sharer for WooComerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.18 | 1.77 ▲0.01 | 43.65 ▼9.96 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▼0.03 | 100.04 ▼7.06 | 36.45 ▼6.55 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.16 ▲0.15 | 37.72 ▼2.01 | 32.10 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,535 ▲15 | 23.41 ▲0.19 | 598.45 ▼87.73 | 47.96 ▼8.65 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.32 ▲0.07 | 102.19 ▼1.23 | 42.37 ▲0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/social-sharer-for-woo/includes/class.plugin.settings.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-sharer-for-woo/includes/class.render.front.icons.php:18
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: social-buttons, buttons, responsive-buttons, social, button...
social-sharer-for-woo/social-sharer-for-woo.php Passed 13 tests
"Social Sharer for WooComerce" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
93 characters long description:
Add attractive & responsive social sharing icons with link to your woocommerce product pages.
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
Everything looks great! No dangerous files found in this plugin21,691 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 958 | 44 | 11,146 |
JavaScript | 8 | 2,779 | 879 | 9,907 |
PHP | 5 | 174 | 86 | 436 |
JSON | 2 | 0 | 0 | 202 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon/square.png | 2.06KB | 1.39KB | ▼ 32.45% |
assets/icon/icon.png | 24.83KB | 13.94KB | ▼ 43.87% |
assets/icon/circle.png | 3.57KB | 2.14KB | ▼ 39.97% |
assets/icon/rounded.png | 2.36KB | 1.49KB | ▼ 37.07% |