Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.99ms] Passed 4 tests
Server-side resources used by WP Social Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.01 | 29.57 ▼11.36 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.56 ▼5.73 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.14 ▲1.54 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 92.60 ▼9.63 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.77 ▼1.24 |
WP Social Buttons /wp-admin/options-general.php?page=wpsb-settings | 3.30 | 37.18 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Social Buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.27 ▼0.29 | 1.58 ▼0.42 | 43.09 ▲0.02 |
Dashboard /wp-admin | 2,204 ▲30 | 5.57 ▼0.08 | 92.29 ▼7.06 | 42.02 ▼4.03 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.04 ▲0.09 | 37.06 ▼0.74 | 32.81 ▼5.38 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.02 ▼0.38 | 658.66 ▼6.73 | 55.70 ▼10.01 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.25 ▲0.04 | 103.21 ▼3.10 | 47.48 ▲4.75 |
WP Social Buttons /wp-admin/options-general.php?page=wpsb-settings | 1,158 | 2.02 | 25.61 | 41.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
wp-social-buttons/wp-social-buttons.php Passed 13 tests
Analyzing the main PHP file in "WP Social Buttons" version 2.2
91 characters long description:
"wp-social-buttons" is the very simple plugin to add official social buttons on your site!.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin378 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 77 | 365 |
CSS | 2 | 0 | 4 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/hide-l.png | 2.37KB | 1.75KB | ▼ 26.23% |
images/right_.png | 3.22KB | 1.86KB | ▼ 42.03% |
images/rt.1.png | 3.13KB | 1.87KB | ▼ 40.31% |
images/sharethis.png | 3.48KB | 2.53KB | ▼ 27.46% |
images/right.png | 3.93KB | 2.29KB | ▼ 41.76% |