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
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▲0.10ms] Passed 4 tests
An overview of server-side resources used by Kehittämö Share Buttons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 42.02 ▲3.43 |
Dashboard /wp-admin | 3.49 ▲0.19 | 46.70 ▼1.43 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 47.99 ▼2.96 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 104.36 ▲11.05 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.20 ▲1.37 |
Share Buttons /wp-admin/options-general.php?page=kehittamo-share-buttons-admin | 3.36 | 31.15 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 193 new files
Database: no new tables, 7 new options
New WordPress options |
---|
kehittamo_share_buttons_settings |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Kehittämö Share Buttons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲177 | 13.65 ▼0.74 | 6.16 ▲4.22 | 43.12 ▼1.85 |
Dashboard /wp-admin | 2,207 ▲16 | 5.81 ▲0.74 | 106.54 ▼13.45 | 39.62 ▼5.43 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.04 ▼0.01 | 41.17 ▲0.01 | 35.17 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,537 ▲14 | 23.22 ▼0.04 | 603.78 ▼76.90 | 51.00 ▼5.63 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.03 | 94.68 ▼7.13 | 42.78 ▼1.98 |
Share Buttons /wp-admin/options-general.php?page=kehittamo-share-buttons-admin | 903 | 2.05 | 23.57 | 28.96 |
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 did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- kehittamo_share_buttons_settings
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=kehittamo-share-buttons-admin
- > Notice in wp-content/plugins/kehittamo-share-buttons/includes/kehittamo-share-buttons-admin.php+169
Undefined index: kehittamo_share_buttons_fb_app_id
- > GET request to /wp-admin/options-general.php?page=kehittamo-share-buttons-admin
- > Notice in wp-content/plugins/kehittamo-share-buttons/includes/kehittamo-share-buttons-admin.php+179
Undefined index: kehittamo_share_buttons_fb_app_secret
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
Please fix the following items
- 93× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/tests/Url/FacebookUrlDetectionHandlerTest.php:28
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Tests\\HttpClients\\AbstractTestHttpClient' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/tests/HttpClients/FacebookCurlHttpClientTest.php:29
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/src/Facebook/GraphNodes/GraphApplication.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/src/Facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php:28
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/src/Facebook/GraphNodes/GraphSessionInfo.php:31
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/tests/Http/GraphRawResponseTest.php:28
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FacebookResponse' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/src/Facebook/FacebookBatchResponse.php:35
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/src/Facebook/GraphNodes/GraphCoverPhoto.php:31
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/tests/Http/RequestBodyMultipartTest.php:29
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/kehittamo-share-buttons/vendor/facebook-php-sdk-v4-5.0.0/src/Facebook/Helpers/FacebookJavaScriptHelper.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: twitter, facebook, social media, whatsapp, share buttons
kehittamo-share-buttons/kehittamo-share-buttons.php Passed 13 tests
The primary PHP file in "Kehittämö Share Buttons" version 0.2.2 is used by WordPress to initiate all plugin functionality
55 characters long description:
Add Facebook, Twitter & Whatsapp share buttons to posts
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
No dangerous file extensions were detected9,671 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 1,855 | 6,605 | 8,963 |
Markdown | 3 | 64 | 0 | 232 |
CSS | 10 | 26 | 47 | 213 |
PO File | 2 | 101 | 229 | 106 |
SVG | 4 | 0 | 0 | 45 |
JSON | 1 | 0 | 0 | 41 |
YAML | 2 | 7 | 0 | 25 |
JavaScript | 2 | 1 | 1 | 24 |
XML | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 125 | |
▷ Abstract classes | 3 | 2.40% |
▷ Concrete classes | 122 | 97.60% |
▷ Final classes | 0 | 0.00% |
Methods | 788 | |
▷ Static methods | 12 | 1.52% |
▷ Public methods | 741 | 94.04% |
▷ Protected methods | 26 | 3.30% |
▷ Private methods | 21 | 2.66% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 40 | |
▷ Global constants | 13 | 32.50% |
▷ Class constants | 27 | 67.50% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected