Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/socail-profile-linking/includes/widget/widget.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; spl_widget has a deprecated constructor
Server metrics [RAM: ▼1.79MB] [CPU: ▼53.55ms] Passed 4 tests
Analyzing server-side resources used by Social Profile Linking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.26 | 6.08 ▼30.86 |
Dashboard /wp-admin | 2.23 ▼1.12 | 5.79 ▼48.17 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 6.33 ▼39.45 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 7.11 ▼95.71 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 6.80 ▼27.03 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_spl_widget |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
spl_all_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Social Profile Linking
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.47 ▲0.24 | 2.00 ▲0.37 | 38.70 ▼3.20 |
Dashboard /wp-admin | 2,224 ▲38 | 5.88 ▲0.95 | 97.43 ▼18.96 | 75.93 ▲29.95 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.97 ▼0.07 | 37.44 ▼5.16 | 33.57 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 23.42 ▲4.80 | 728.79 ▲123.08 | 58.32 ▲0.92 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.12 ▼0.07 | 107.89 ▲8.25 | 67.37 ▲23.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/socail-profile-linking/includes/widget/widget.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; spl_widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- spl_all_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_spl_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/socail-profile-linking/includes/widget/widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socail-profile-linking/includes/admin/settings.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/socail-profile-linking/spl.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/socail-profile-linking/includes/front-end/shortcode.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: social media, twitter, social networks, social marketing, facebook...
socail-profile-linking/spl.php 92% from 13 tests
The main PHP file in "Social Profile Linking" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("socail-profile-linking.php" instead of "spl.php")
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
Everything looks great! No dangerous files found in this plugin2,026 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 56 | 6 | 39 | 1,140 |
PHP | 5 | 258 | 86 | 790 |
CSS | 1 | 17 | 11 | 96 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 11.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/social.png | 0.67KB | 0.60KB | ▼ 9.53% |