Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.93ms] Passed 4 tests
An overview of server-side resources used by Social Media Share Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.75 ▲1.60 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.08 ▼1.10 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.77 ▲4.12 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.45 ▼7.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.99 ▼0.23 |
All Share Buttons /wp-admin/admin.php?page=fny_share_buttons_admin | 3.25 | 33.67 |
Add New /wp-admin/admin.php?page=fny_create_share_button | 3.25 | 30.42 |
Products /wp-admin/admin.php?page=fny_smsb_other_products | 3.24 | 30.25 |
Server storage [IO: ▲4.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 163 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_fny_sharebuttons |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Social Media Share Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.44 ▲0.32 | 1.52 ▼0.37 | 41.93 ▼3.88 |
Dashboard /wp-admin | 2,234 ▲43 | 5.78 ▼0.08 | 99.14 ▼10.79 | 39.52 ▼0.95 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.02 ▼0.02 | 40.23 ▲3.47 | 34.62 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,567 ▲53 | 18.60 ▲1.11 | 597.87 ▼111.14 | 51.43 ▼7.58 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.24 ▼0.06 | 100.71 ▼2.13 | 39.54 ▼6.05 |
All Share Buttons /wp-admin/admin.php?page=fny_share_buttons_admin | 907 | 2.03 | 26.39 | 59.95 |
Add New /wp-admin/admin.php?page=fny_create_share_button | 2,272 | 2.29 | 31.27 | 35.44 |
Products /wp-admin/admin.php?page=fny_smsb_other_products | 895 | 2.02 | 26.49 | 31.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_fny_sharebuttons
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
fny-social-media-share-buttons/fnysocialmediasharebuttons.php 92% from 13 tests
Analyzing the main PHP file in "Social Media Share Buttons" version 1.7
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("fny-social-media-share-buttons.php" instead of "fnysocialmediasharebuttons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected27,296 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 69 | 64 | 13,761 |
SVG | 42 | 0 | 40 | 5,651 |
Sass | 18 | 45 | 37 | 3,364 |
LESS | 18 | 45 | 61 | 3,340 |
PHP | 13 | 138 | 27 | 548 |
HTML | 1 | 9 | 1 | 282 |
JavaScript | 6 | 67 | 10 | 267 |
Markdown | 1 | 11 | 0 | 51 |
JSON | 2 | 0 | 0 | 32 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 5 | 62.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/bootstrap/assets/img/bootstrap-social.png | 51.39KB | 13.26KB | ▼ 74.19% |
public/images/backup.png | 76.62KB | 25.31KB | ▼ 66.96% |
public/images/gallery.png | 19.85KB | 8.35KB | ▼ 57.96% |
public/images/pro.PNG | 12.28KB | 5.33KB | ▼ 56.61% |
public/images/pro_size.PNG | 4.35KB | 2.22KB | ▼ 48.89% |