Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.29ms] Passed 4 tests
An overview of server-side resources used by G Social Buttons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.89 ▲1.41 |
Dashboard /wp-admin | 3.34 ▼0.00 | 43.42 ▼19.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.85 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 79.39 ▼13.19 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 32.32 ▲0.33 |
Server storage [IO: ▲9.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 39 new options
New WordPress options |
---|
call_now_link |
widget_recent-posts |
skype_link |
skype_text |
db_upgraded |
call_now_social_data |
widget_theysaidso_widget |
twitter_text |
pinterest_text |
phone_link |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for G Social Buttons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.36 ▼0.20 | 2.01 ▲0.22 | 51.95 ▲8.70 |
Dashboard /wp-admin | 2,211 ▲31 | 5.57 ▼0.04 | 84.16 ▼14.79 | 38.59 ▼2.89 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.00 ▲0.03 | 33.48 ▼4.99 | 35.01 ▼1.43 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,727 | 19.14 ▼3.93 | 822.82 ▲169.90 | 52.18 ▼0.68 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.18 ▲0.01 | 95.03 ▼1.24 | 41.32 ▼0.32 |
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
- The uninstall procedure has failed, leaving 39 options in the database
- mail_link
- whatsapp_link
- skype_text
- instagram_link
- call_now_title
- widget_theysaidso_widget
- linkedin_text
- phone_text
- skype_link
- phone_link
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-social-buttons/gsb-functions.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/g-social-buttons/includes/gsb.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-social-buttons/gsb-admin.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-social-buttons/gsb-functions.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (An image from the setting panel of the "G Social Buttons" plug-in.)
g-social-buttons/index.php 85% from 13 tests
The entry point to "G Social Buttons" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 180 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("g-social-buttons.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin32,053 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 16 | 30,149 |
PHP | 5 | 196 | 657 | 1,255 |
Sass | 2 | 114 | 0 | 646 |
CSS | 3 | 0 | 6 | 3 |
PHP code Passed 2 tests
This is a short overview 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.54 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 134.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 9 | 25.00% |
▷ Public methods | 33 | 91.67% |
▷ Protected methods | 2 | 5.56% |
▷ Private methods | 1 | 2.78% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin