Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.26ms] Passed 4 tests
Server-side resources used by Superb Social Media Share Buttons and Follow Buttons for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.53 ▲1.05 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.31 ▼0.21 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.33 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.67 ▼16.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.19 ▼0.22 |
Share Buttons /wp-admin/admin.php?page=spbsm | 3.29 | 35.32 |
Follow Buttons /wp-admin/admin.php?page=spbsm-follow | 3.28 | 35.82 |
Server storage [IO: ▲2.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_spbsm |
wp_spbsm_position |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
spbsm_db_version |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Superb Social Media Share Buttons and Follow Buttons for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.22 ▼1.53 | 2.11 ▲0.10 | 43.88 ▼1.13 |
Dashboard /wp-admin | 2,229 ▲40 | 5.83 ▼0.07 | 95.29 ▼13.72 | 85.52 ▲42.30 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 1.99 ▼0.03 | 38.28 ▲1.80 | 37.80 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.12 ▼0.19 | 653.70 ▼12.03 | 55.61 ▼5.55 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.17 ▼0.03 | 103.46 ▼0.17 | 72.05 ▲25.88 |
Share Buttons /wp-admin/admin.php?page=spbsm | 1,210 | 2.28 | 44.49 | 103.58 |
Follow Buttons /wp-admin/admin.php?page=spbsm-follow | 1,653 | 2.32 | 40.64 | 58.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_spbsm
- wp_spbsm_position
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- spbsm_db_version
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/superb-social-share-and-follow-buttons/inc/backend-parts/generalform.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/superb-social-share-and-follow-buttons/inc/backend_follow.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/superb-social-share-and-follow-buttons/inc/backend_share.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/superb-social-share-and-follow-buttons/inc/backend-parts/designform.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/superb-social-share-and-follow-buttons/inc/backend-parts/submitbutton.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/superb-social-share-and-follow-buttons/readmorebuttons.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: share, buttons, media, follow, social
superb-social-share-and-follow-buttons/superb-social-share-and-follow-buttons.php 92% from 13 tests
The main PHP script in "Superb Social Media Share Buttons and Follow Buttons for WordPress" version 1.1.7 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin21,270 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 40 | 0 | 25 | 17,947 |
PHP | 15 | 194 | 414 | 1,604 |
CSS | 3 | 45 | 23 | 1,054 |
JavaScript | 2 | 68 | 143 | 665 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 2 | 28.57% |
Methods | 64 | |
▷ Static methods | 2 | 3.12% |
▷ Public methods | 54 | 84.38% |
▷ Protected methods | 1 | 1.56% |
▷ Private methods | 9 | 14.06% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
9 PNG files occupy 0.31MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-discount-15.png | 3.23KB | 2.58KB | ▼ 20.10% |
assets/img/60-icon.png | 6.48KB | 3.04KB | ▼ 53.11% |
assets/img/design.png | 46.63KB | 18.56KB | ▼ 60.20% |
assets/img/banner-772x250.png | 17.85KB | 7.40KB | ▼ 58.55% |
assets/img/drag.png | 0.78KB | 0.74KB | ▼ 5.35% |