Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/social-accounts/ffto-social-accounts-widget.php+2
Function create_function() is deprecated
Server metrics [RAM: ▼1.74MB] [CPU: ▼50.99ms] Passed 4 tests
Analyzing server-side resources used by Social Accounts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 5.33 ▼33.59 |
Dashboard /wp-admin | 2.27 ▼1.03 | 6.17 ▼41.48 |
Posts /wp-admin/edit.php | 2.27 ▼1.09 | 6.95 ▼44.10 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.62 | 6.50 ▼84.77 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 6.04 ▼28.39 |
Social Accounts /wp-admin/options-general.php?page=ffto-social-accounts | 2.27 | 5.97 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 77 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_ffto_social_accounts_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Social Accounts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲22 | 14.43 ▲0.08 | 1.74 ▼0.01 | 44.11 ▲1.20 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.03 | 99.85 ▲3.08 | 41.44 ▼2.95 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.02 ▲0.01 | 35.37 ▼6.59 | 32.52 ▼6.90 |
Add New Post /wp-admin/post-new.php | 1,541 ▲7 | 17.93 ▼0.49 | 605.11 ▼44.26 | 67.46 ▼9.96 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.27 ▼0.03 | 103.44 ▲1.60 | 44.51 ▲0.24 |
Social Accounts /wp-admin/options-general.php?page=ffto-social-accounts | 2,417 | 2.25 | 46.24 | 115.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/social-accounts/ffto-social-accounts-widget.php+2
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_ffto_social_accounts_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ffto-social-accounts
- > Deprecated in wp-content/plugins/social-accounts/ffto-social-accounts-widget.php+2
Function create_function() is deprecated
- 18 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ffto-social-accounts
- > Notice in wp-content/plugins/social-accounts/ffto-social-accounts.php+278
Undefined index: rare
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-accounts/ffto-social-accounts-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/social-accounts/ffto-social-accounts.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: widget, account, social, profiles, accounts...
social-accounts/ffto-social-accounts.php 92% from 13 tests
The primary PHP file in "Social Accounts" version 1.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("social-accounts.php" instead of "ffto-social-accounts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin610 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 75 | 22 | 482 |
JavaScript | 1 | 30 | 0 | 103 |
CSS | 2 | 6 | 0 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 61.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 38.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
71 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons32/linkedin.png | 1.28KB | 1.40KB | 0.00% |
images/icons16/deviantart.png | 0.80KB | 0.83KB | 0.00% |
images/icons32/myspace.png | 1.33KB | 1.24KB | ▼ 6.53% |
images/icons16/pinterest.png | 1.54KB | 0.66KB | ▼ 57.14% |
images/icons16/yelp.png | 0.61KB | 0.59KB | ▼ 3.83% |