Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/social-wiggle/socialwiggle.php+45
Function create_function() is deprecated
Server metrics [RAM: ▼1.72MB] [CPU: ▼50.74ms] Passed 4 tests
An overview of server-side resources used by SocialWiggle
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 8.34 ▼37.44 |
Dashboard /wp-admin | 2.29 ▼1.02 | 8.29 ▼41.64 |
Posts /wp-admin/edit.php | 2.29 ▼1.07 | 8.66 ▼40.15 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.60 | 8.97 ▼83.73 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 8.45 ▼24.78 |
SocialWiggle /wp-admin/options-general.php?page=socialwiggle | 2.29 | 8.87 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_socwig_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for SocialWiggle
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲158 | 13.58 ▼0.79 | 7.54 ▲5.76 | 43.84 ▼5.44 |
Dashboard /wp-admin | 2,217 ▲29 | 4.90 ▼0.01 | 113.27 ▼1.08 | 40.86 ▼4.75 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▲0.04 | 40.06 ▲2.64 | 36.06 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,399 ▼134 | 18.39 ▼5.17 | 582.24 ▼98.77 | 42.91 ▼16.79 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.30 ▲0.09 | 95.32 ▼7.92 | 40.18 ▼3.14 |
SocialWiggle /wp-admin/options-general.php?page=socialwiggle | 1,372 | 1.78 | 24.64 | 28.56 |
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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/social-wiggle/socialwiggle.php+45
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_socwig_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=socialwiggle
- > Deprecated in wp-content/plugins/social-wiggle/includes/wp_pluginbase_v2_3.php+407
Function create_function() is deprecated
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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/social-wiggle/includes/networks_array.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-wiggle/includes/widget.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-wiggle/includes/widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: metro, social profiles, social, social networks
social-wiggle/socialwiggle.php 92% from 13 tests
This is the main PHP file of "SocialWiggle" version 0.8.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("social-wiggle.php" instead of "socialwiggle.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,783 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 364 | 371 | 1,370 |
JavaScript | 3 | 27 | 11 | 190 |
CSS | 2 | 27 | 0 | 182 |
PO File | 1 | 12 | 12 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 28.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 12 | 10.71% |
▷ Public methods | 112 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/img/social-sprite-32.png | 10.08KB | 6.70KB | ▼ 33.53% |
css/img/social-sprite-64.png | 21.71KB | 13.16KB | ▼ 39.39% |