Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.06MB] [CPU: ▼292.38ms] Passed 4 tests
Server-side resources used by WP SNS Share Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.11 | 25.20 ▲3.49 |
Dashboard /wp-admin | 3.24 ▲0.19 | 44.64 ▲1.89 |
Posts /wp-admin/edit.php | 3.29 ▲0.19 | 40.57 ▲0.05 |
Add New Post /wp-admin/post-new.php | 4.77 ▼0.65 | 55.20 ▼1,166.95 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 30.72 ▼4.50 |
WP SNS Share Buttons /wp-admin/options-general.php?page=wpssb-setting | 3.07 | 25.49 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP SNS Share Buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,680 ▲98 | 15.81 ▲0.26 | 8.91 ▲1.93 | 49.90 ▲3.52 |
Dashboard /wp-admin | 2,935 ▲85 | 5.92 ▲0.15 | 132.77 ▼5.97 | 108.70 ▲15.41 |
Posts /wp-admin/edit.php | 2,708 ▲2 | 2.69 ▼0.00 | 62.99 ▼1.00 | 95.57 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,856 ▲203 | 19.08 ▲0.22 | 357.23 ▼16.39 | 106.67 ▲3.68 |
Media Library /wp-admin/upload.php | 1,774 ▲2 | 5.12 ▲0.12 | 154.48 ▲3.28 | 112.53 ▼6.09 |
WP SNS Share Buttons /wp-admin/options-general.php?page=wpssb-setting | 1,244 | 2.21 | 55.31 | 76.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 15 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpssb-setting
- > Notice in wp-content/plugins/wp-sns-share-buttons/wp-sns-share-buttons.php+333
Trying to access array offset on value of type bool
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Sns_Share_Buttons_Buttons' not found in wp-content/plugins/wp-sns-share-buttons/template/wpssb-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/wp-sns-share-buttons/wp-sns-share-buttons.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/wp-sns-share-buttons/wp-sns-share-buttons.php:68
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
wp-sns-share-buttons/wp-sns-share-buttons.php Passed 13 tests
Analyzing the main PHP file in "WP SNS Share Buttons" version 0.1.8
66 characters long description:
A WordPress plugin that makes SNS Share and Follow Buttons easily.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected748 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 154 | 32 | 663 |
PO File | 1 | 31 | 42 | 84 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.73 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 58 | 84.06% |
▷ Protected methods | 7 | 10.14% |
▷ Private methods | 4 | 5.80% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin