Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.80MB] [CPU: ▲3.62ms] Passed 4 tests
Server-side resources used by BestWebSoft's LinkedIn
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.80 | 51.44 ▲7.77 |
Dashboard /wp-admin | 4.16 ▲0.85 | 57.16 ▲4.28 |
Posts /wp-admin/edit.php | 4.21 ▲0.85 | 56.06 ▲3.85 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.80 | 95.40 ▼1.42 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 48.06 ▲12.84 |
Server storage [IO: ▲4.73MB] [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: 121 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
lnkdn_options |
theysaidso_admin_options |
bstwbsftwppdtplgns_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for BestWebSoft's LinkedIn
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 14.64 ▲0.29 | 1.80 ▲0.18 | 41.20 ▼3.11 |
Dashboard /wp-admin | 2,304 ▲127 | 5.63 ▲0.05 | 89.21 ▼0.03 | 39.67 ▼4.58 |
Posts /wp-admin/edit.php | 2,219 ▲119 | 2.21 ▲0.10 | 40.11 ▲3.59 | 35.21 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,636 ▲110 | 23.34 ▲0.27 | 656.44 ▲12.90 | 52.49 ▼3.48 |
Media Library /wp-admin/upload.php | 1,506 ▲106 | 4.20 ▲0.04 | 99.12 ▼17.99 | 44.03 ▼3.89 |
Settings /wp-admin/linkedin.php | 26 | 0.42 | 0.18 | 13.64 |
BWS Panel /wp-admin/linkedin.php?page=lnkdn-bws-panel | 26 | 0.42 | 0.09 | 6.42 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 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)
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
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/bws-linkedin/includes/class-lnkdn-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bws-linkedin/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bws-linkedin/bws-linkedin.php:553
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bws-linkedin/bws_menu/class-bws-settings.php:1452
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/linkedin.php
- > Network (severe)
wp-admin/linkedin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/linkedin.php?page=lnkdn-bws-panel
- > Network (severe)
wp-admin/linkedin.php?page=lnkdn-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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: These screenshots require images: #1 (LinkedIn Buttons in the front-end.), #2 (LinkedIn Settings Page.), #3 (Adding shortcode into the content.)
bws-linkedin/bws-linkedin.php Passed 13 tests
This is the main PHP file of "BestWebSoft's LinkedIn" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
76 characters long description:
Add LinkedIn Share and Follow buttons to WordPress posts, pages and widgets.
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 detected19,158 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 3,623 | 5,306 | 7,981 |
CSS | 10 | 189 | 274 | 5,566 |
PHP | 9 | 480 | 623 | 4,966 |
JavaScript | 6 | 27 | 110 | 495 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 88.33 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 10.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 22.22% |
Functions | 71 | |
▷ Named functions | 71 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
64 PNG files occupy 3.15MB with 1.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_65_ffffff_1x400.png | 0.25KB | 0.11KB | ▼ 54.83% |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-icons_2e83ff_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-icons_cd0a0a_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_95_fef1ec_1x400.png | 0.38KB | 0.17KB | ▼ 53.39% |