Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.00ms] Passed 4 tests
An overview of server-side resources used by Social Share Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.26 ▼4.55 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.94 ▼10.18 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.56 ▼1.14 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 1,313.00 ▲1,213.57 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.72 ▼0.11 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
apss_social_counts_transients |
widget_recent-comments |
apss_share_settings |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Social Share Buttons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 13.66 ▼0.73 | 8.83 ▲7.13 | 40.31 ▼3.40 |
Dashboard /wp-admin | 2,210 ▲36 | 5.51 ▼0.02 | 86.04 ▼24.77 | 71.11 ▲24.73 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.99 ▲0.01 | 37.02 ▼6.12 | 35.43 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 22.87 ▼0.38 | 748.38 ▲51.08 | 55.51 ▼9.42 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.20 ▲0.08 | 101.51 ▼1.05 | 75.20 ▲28.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- apss_social_counts_transients
- theysaidso_admin_options
- apss_share_settings
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/seo-optimized-share-buttons/simple-social-share-buttons.php
- > /wp-content/plugins/seo-optimized-share-buttons/inc/frontend/shortcode.php
- > /wp-content/plugins/seo-optimized-share-buttons/inc/backend/how-to-use.php
- > /wp-content/plugins/seo-optimized-share-buttons/inc/backend/main-page.php
- > /wp-content/plugins/seo-optimized-share-buttons/inc/backend/save-settings.php
- > /wp-content/plugins/seo-optimized-share-buttons/inc/frontend/count_shortcode.php
- > /wp-content/plugins/seo-optimized-share-buttons/inc/backend/activation.php
- > /wp-content/plugins/seo-optimized-share-buttons/inc/backend/about-apss.php
- > /wp-content/plugins/seo-optimized-share-buttons/inc/frontend/content-filter.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: social, social share buttons, share, share buttons, buttons
seo-optimized-share-buttons/simple-social-share-buttons.php 77% from 13 tests
The main PHP script in "Social Share Buttons" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("seo-optimized-share-buttons.php" instead of "simple-social-share-buttons.php")
- Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,279 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 195 | 134 | 1,563 |
SVG | 1 | 0 | 0 | 504 |
PO File | 1 | 68 | 87 | 168 |
JavaScript | 2 | 7 | 3 | 42 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 129.00 |
▷ Minimum class complexity | 129.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 5.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 29 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/google-plus-blue.png | 1.85KB | 0.79KB | ▼ 57.25% |
images/left-arrow.png | 1.02KB | 0.19KB | ▼ 81.82% |
images/arrow.png | 1.02KB | 0.18KB | ▼ 82.55% |
images/demo-btn.png | 1.74KB | 0.78KB | ▼ 55.14% |
images/flickr.png | 1.18KB | 0.29KB | ▼ 75.89% |