Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/twine-social/twinesocial-widget.php+34
Function create_function() is deprecated
Server metrics [RAM: ▼1.74MB] [CPU: ▼184.40ms] Passed 4 tests
Analyzing server-side resources used by Show your social media posts: easy & beautiful!
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼0.83 | 11.94 ▼11.47 |
Dashboard /wp-admin | 1.91 ▼1.14 | 6.02 ▼35.18 |
Posts /wp-admin/edit.php | 1.91 ▼1.20 | 6.37 ▼35.43 |
Add New Post /wp-admin/post-new.php | 1.91 ▼3.52 | 6.02 ▼645.29 |
Media Library /wp-admin/upload.php | 1.91 ▼1.09 | 6.31 ▼21.68 |
Server storage [IO: ▲2.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_twinesocial_widget |
Browser metrics Passed 4 tests
Show your social media posts: easy & beautiful!: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲110 | 16.27 ▲0.76 | 12.63 ▲3.01 | 54.29 ▲3.94 |
Dashboard /wp-admin | 2,963 ▲26 | 5.94 ▲0.01 | 157.73 ▲13.26 | 151.07 ▲36.49 |
Posts /wp-admin/edit.php | 2,757 ▲18 | 2.68 ▼0.01 | 70.68 ▲0.50 | 84.68 ▼10.35 |
Add New Post /wp-admin/post-new.php | 1,686 ▲186 | 18.40 ▼0.37 | 397.81 ▼5.30 | 123.16 ▲9.52 |
Media Library /wp-admin/upload.php | 1,748 ▼65 | 5.00 ▼0.01 | 139.49 ▼8.06 | 152.81 ▲30.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/twine-social/twinesocial-widget.php+34
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 1 option
- widget_twinesocial_widget
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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 10× PHP files output text when accessed directly:
- > /wp-content/plugins/twine-social/lib/tab-rules.php
- > /wp-content/plugins/twine-social/lib/tab-hubs.php
- > /wp-content/plugins/twine-social/lib/upgrade-banner.php
- > /wp-content/plugins/twine-social/lib/tab-faq.php
- > /wp-content/plugins/twine-social/lib/tab-shortcode.php
- > /wp-content/plugins/twine-social/lib/tab-connections.php
- > /wp-content/plugins/twine-social/lib/tab-users.php
- > /wp-content/plugins/twine-social/lib/tab-feeds.php
- > /wp-content/plugins/twine-social/lib/tab-settings.php
- > /wp-content/plugins/twine-social/lib/tab-collections.php
- 94× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to get property 'baseUrl' of non-object in wp-content/plugins/twine-social/lib/tab-shortcode.php on line 164
- > PHP Warning
Use of undefined constant TWINE_PUBLIC_URL - assumed 'TWINE_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/twine-social/lib/tab-overview.php on line 6
- > PHP Notice
Undefined variable: twinesocial_accountid in wp-content/plugins/twine-social/lib/tab-settings.php on line 10
- > PHP Notice
Trying to get property 'campaigns' of non-object in wp-content/plugins/twine-social/lib/tab-hubs.php on line 22
- > PHP Warning
Use of undefined constant TWINE_CUSTOMER_URL - assumed 'TWINE_CUSTOMER_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/twine-social/lib/tab-users.php on line 22
- > PHP Notice
Undefined variable: twinesocial_appdata in wp-content/plugins/twine-social/lib/start.php on line 20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/twine-social/lib/tab-shortcode.php on line 164
- > PHP Notice
Trying to get property 'campaigns' of non-object in wp-content/plugins/twine-social/lib/tab-collections.php on line 31
- > PHP Notice
Undefined variable: twinesocial_appdata in wp-content/plugins/twine-social/lib/upgrade-banner.php on line 15
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/twine-social/twinesocial-admin.php on line 2
- > PHP Notice
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 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #6, #7 in twine-social/assets to your readme.txt
- Tags: There are too many tags (33 tag instead of maximum 10)
twine-social/twinesocial-widget.php 85% from 13 tests
"Show your social media posts: easy & beautiful!" version 3.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("twine-social.php" instead of "twinesocial-widget.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 250 characters long)
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
Success! There were no dangerous files found in this plugin12,914 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 992 | 57 | 10,868 |
PHP | 18 | 262 | 88 | 1,220 |
SVG | 1 | 0 | 0 | 504 |
JavaScript | 4 | 58 | 67 | 322 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 6.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
10 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/help.png | 1.72KB | 2.26KB | 0.00% |
(invalid) assets/banner-772x250.png | 12.27KB | 0.00KB | ▼ 100.00% |
images/66.png | 1.25KB | 0.22KB | ▼ 82.10% |
images/4444.png | 1.59KB | 0.47KB | ▼ 70.43% |
images/dialog-critical.png | 3.33KB | 1.71KB | ▼ 48.83% |