Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼9.26ms] Passed 4 tests
An overview of server-side resources used by Social Custom Share
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.26 ▲2.56 |
Dashboard /wp-admin | 3.43 ▲0.08 | 47.36 ▼16.76 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 46.94 ▲0.61 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 80.95 ▼22.72 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.04 ▲1.83 |
Social Custom Share /wp-admin/options-general.php?page=gwsscs-social-custom-share | 3.32 | 30.08 |
Server storage [IO: ▲3.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
gwsscs_twitter_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
gwsscs_facebook_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Social Custom Share: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.17 ▼0.18 | 1.69 ▲0.15 | 44.60 ▲3.67 |
Dashboard /wp-admin | 2,201 ▲21 | 5.65 ▲0.02 | 97.58 ▲8.92 | 43.20 ▲0.31 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.03 ▲0.06 | 34.36 ▼5.77 | 34.25 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.76 ▲5.26 | 671.60 ▲16.88 | 66.27 ▼7.91 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.22 ▼0.01 | 97.18 ▼18.18 | 44.68 ▼2.15 |
Social Custom Share /wp-admin/options-general.php?page=gwsscs-social-custom-share | 1,020 | 2.14 | 22.82 | 43.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- gwsscs_twitter_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- gwsscs_facebook_options
- theysaidso_admin_options
- widget_theysaidso_widget
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/social-custom-share/shortcodes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-custom-share/options.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: social share button, facebook share, twitter social button, twitter share, facebook social button
social-custom-share/social-custom-share.php Passed 13 tests
"Social Custom Share" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Using this plugin, we can allow user to share any text on social media.
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
Good job! No executable or dangerous file extensions detected830 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 95 | 9 | 533 |
CSS | 2 | 28 | 0 | 191 |
PO File | 1 | 26 | 30 | 106 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 PNG files occupy 3.21MB with 2.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/style_6.png | 240.37KB | 130.43KB | ▼ 45.74% |
assets/images/fb_style_5.png | 78.51KB | 26.61KB | ▼ 66.11% |
assets/images/style_5.png | 78.06KB | 27.11KB | ▼ 65.27% |
assets/images/style_7_design_bg.png | 150.11KB | 48.27KB | ▼ 67.84% |
assets/images/fb_style_9.png | 166.30KB | 30.04KB | ▼ 81.94% |