Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.96MB] [CPU: ▲6.97ms] Passed 4 tests
This is a short check of server-side resources used by Ultimate Social Media Share
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.51 ▲1.04 | 50.99 ▲6.99 |
Dashboard /wp-admin | 4.27 ▲0.97 | 58.05 ▲7.56 |
Posts /wp-admin/edit.php | 4.32 ▲0.96 | 54.98 ▲8.49 |
Add New Post /wp-admin/post-new.php | 6.85 ▲0.96 | 99.50 ▲4.82 |
Media Library /wp-admin/upload.php | 4.19 ▲0.96 | 44.21 ▲11.01 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 172 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
ultimatesocialshare |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Ultimate Social Media Share: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲118 | 13.12 ▼1.51 | 1.95 ▼0.02 | 44.75 ▲2.28 |
Dashboard /wp-admin | 2,264 ▲73 | 5.85 ▼0.04 | 102.32 ▲0.25 | 40.71 ▲3.43 |
Posts /wp-admin/edit.php | 2,141 ▲55 | 2.05 ▲0.03 | 34.70 ▼1.16 | 31.38 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,563 ▲21 | 23.43 ▲0.26 | 684.86 ▲72.48 | 64.17 ▲11.49 |
Media Library /wp-admin/upload.php | 1,443 ▲58 | 4.23 ▲0.06 | 100.50 ▼4.98 | 42.52 ▼5.01 |
Style Settings /wp-admin/admin.php?page=ultimate_social_sharings#tab=style-settings | 2,008 | 4.52 | 90.18 | 103.34 |
General Settings /wp-admin/admin.php?page=ultimate_social_sharings#tab=general-settings | 1,714 | 3.90 | 71.32 | 94.99 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- ultimatesocialshare
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-social-share/inc/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-social-share/inc/share_counts.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-social-share/inc/actions.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ultimate-social-share/ultimatesocialshare.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
ultimate-social-share/ultimatesocialshare.php 85% from 13 tests
The main PHP file in "Ultimate Social Media Share" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ultimate-social-share.php" instead of "ultimatesocialshare.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected26,037 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,016 | 518 | 8,684 |
PHP | 71 | 2,766 | 1,104 | 8,102 |
Sass | 15 | 928 | 3 | 4,730 |
JavaScript | 10 | 1,352 | 422 | 4,516 |
SVG | 3 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 25.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 6.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 241 | |
▷ Static methods | 39 | 16.18% |
▷ Public methods | 240 | 99.59% |
▷ Protected methods | 1 | 0.41% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 46 | 95.83% |
▷ Anonymous functions | 2 | 4.17% |
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
PNG files should be compressed to save space and minimize bandwidth usage
57 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/socialicons/stackoverflow.png | 0.92KB | 0.48KB | ▼ 47.83% |
admin/assets/images/socialicons/skype.png | 0.94KB | 0.49KB | ▼ 47.29% |
admin/assets/images/socialicons/vkontakte.png | 0.66KB | 0.37KB | ▼ 44.28% |
admin/assets/images/socialicons/wordpress.png | 1.44KB | 0.68KB | ▼ 52.55% |
admin/assets/images/socialicons/behance.png | 0.75KB | 0.43KB | ▼ 41.68% |