Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▲2.95ms] Passed 4 tests
Analyzing server-side resources used by Scriptless Social Sharing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 47.83 ▲3.84 |
Dashboard /wp-admin | 3.65 ▲0.35 | 48.31 ▲0.44 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 60.34 ▲16.95 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.44 | 86.21 ▲2.56 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 35.67 ▲4.95 |
Scriptless Social Sharing /wp-admin/options-general.php?page=scriptlesssocialsharing | 3.59 | 34.27 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Scriptless Social Sharing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲43 | 14.33 ▲0.01 | 1.89 ▲0.13 | 42.51 ▲3.05 |
Dashboard /wp-admin | 2,202 ▲27 | 5.60 ▼0.08 | 85.38 ▼31.52 | 39.67 ▼4.61 |
Posts /wp-admin/edit.php | 2,283 ▲186 | 3.66 ▲1.69 | 106.31 ▲70.45 | 35.32 ▼2.30 |
Add New Post /wp-admin/post-new.php | 6,433 ▲4,907 | 27.18 ▲4.03 | 925.21 ▲217.56 | 41.08 ▼20.76 |
Media Library /wp-admin/upload.php | 1,395 ▼8 | 4.18 ▲0.01 | 90.58 ▼7.20 | 44.01 ▼3.99 |
Scriptless Social Sharing /wp-admin/options-general.php?page=scriptlesssocialsharing | 1,300 | 2.01 | 37.78 | 33.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/scriptless-social-sharing/includes/settings/sections.php:9
- > PHP Fatal error
Uncaught Error: Class 'ScriptlessSocialSharingButton' not found in wp-content/plugins/scriptless-social-sharing/includes/buttons/class-scriptlesssocialsharing-button-pocket.php:9
- > PHP Fatal error
Uncaught Error: Class 'ScriptlessSocialSharingOutput' not found in wp-content/plugins/scriptless-social-sharing/includes/output/class-scriptlesssocialsharing-output-shortcode.php:7
- > PHP Fatal error
Uncaught Error: Class 'ScriptlessSocialSharingButton' not found in wp-content/plugins/scriptless-social-sharing/includes/buttons/class-scriptlesssocialsharing-button-fallback.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scriptless-social-sharing/includes/class-scriptlesssocialsharing-button-maker.php:166
- > PHP Fatal error
Uncaught Error: Class 'ScriptlessSocialSharingButton' not found in wp-content/plugins/scriptless-social-sharing/includes/buttons/class-scriptlesssocialsharing-button-whatsapp.php:9
- > PHP Fatal error
Uncaught Error: Class 'ScriptlessSocialSharingButton' not found in wp-content/plugins/scriptless-social-sharing/includes/buttons/class-scriptlesssocialsharing-button-facebook.php:9
- > PHP Fatal error
Uncaught Error: Class 'ScriptlessSocialSharingOutputShortcode' not found in wp-content/plugins/scriptless-social-sharing/includes/output/class-scriptlesssocialsharing-output-block.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/scriptless-social-sharing/includes/settings/fields.php:9
- > PHP Fatal error
Uncaught Error: Class 'ScriptlessSocialSharingButton' not found in wp-content/plugins/scriptless-social-sharing/includes/buttons/class-scriptlesssocialsharing-button-sms.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
3 plugin tags: sharing buttons, social networks, social sharing
scriptless-social-sharing/scriptless-social-sharing.php Passed 13 tests
"Scriptless Social Sharing" version 3.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
43 characters long description:
A scriptless plugin to add sharing buttons.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,224 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 438 | 1,674 | 2,533 |
JavaScript | 6 | 43 | 71 | 301 |
PO File | 1 | 79 | 93 | 288 |
SVG | 25 | 25 | 0 | 98 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 202 | |
▷ Static methods | 1 | 0.50% |
▷ Public methods | 63 | 31.19% |
▷ Protected methods | 103 | 50.99% |
▷ Private methods | 36 | 17.82% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected