Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.22ms] Passed 4 tests
A check of server-side resources used by WD WidgetTwitter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.83 ▼3.37 |
Dashboard /wp-admin | 3.36 ▲0.06 | 42.53 ▼8.77 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 46.86 ▼3.21 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 84.13 ▼9.52 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.17 ▲1.43 |
Overview /wp-admin/admin.php?page=overview_wdti | 3.30 | 33.80 |
Licensing /wp-admin/admin.php?page=licensing_twitter_integration | 3.28 | 32.50 |
Uninstall /wp-admin/admin.php?page=uninstall_twitter_integration | 3.31 | 31.96 |
Server storage [IO: ▲3.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 151 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_twitter_integration |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
wdti_admin_notice |
wdti_do_activation_set_up_redirect |
widget_recent-comments |
db_upgraded |
widget_twitter_integration |
can_compress_scripts |
WD_WDTI_VERSION_FREE |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WD WidgetTwitter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 13.66 ▼0.92 | 1.68 ▼0.36 | 40.66 ▼3.60 |
Dashboard /wp-admin | 2,223 ▲32 | 5.86 ▲0.99 | 108.19 ▼6.51 | 68.64 ▲21.40 |
Posts /wp-admin/edit.php | 2,100 ▲32 | 2.02 ▼0.12 | 34.86 ▼3.33 | 29.65 ▼11.70 |
Add New Post /wp-admin/post-new.php | 1,527 ▼9 | 23.07 ▼0.25 | 671.47 ▼7.86 | 184.88 ▲136.36 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.10 ▼0.09 | 99.42 ▼1.94 | 76.33 ▲33.10 |
Overview /wp-admin/admin.php?page=overview_wdti | 1,349 | 2.04 | 26.63 | 87.26 |
Licensing /wp-admin/admin.php?page=licensing_twitter_integration | 821 | 2.01 | 23.15 | 21.82 |
Uninstall /wp-admin/admin.php?page=uninstall_twitter_integration | 961 | 1.92 | 29.09 | 35.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_twitter_integration
- Zombie WordPress options detected upon uninstall: 10 options
- widget_twitter_integration
- widget_recent-posts
- WD_WDTI_VERSION_FREE
- wdti_do_activation_set_up_redirect
- theysaidso_admin_options
- wdti_admin_notice
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 59× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to get property 'plugin_wd_url' of non-object in wp-content/plugins/widget-twitter/wd/templates/display_overview_welcome.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/widget-twitter/wd/templates/display_overview_user_guide.php:33
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/widget-twitter/wd/templates/display_subscribe.php on line 6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/widget-twitter/wd/templates/display_overview.php on line 4
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/widget-twitter/wd/templates/display_subscribe.php on line 4
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/widget-twitter/wd/templates/display_overview.php on line 4
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/widget-twitter/wd/templates/display_overview_welcome.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/widget-twitter/wd/templates/display_overview_support.php:3
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-twitter/twitter.php on line 12
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/widget-twitter/wd/templates/display_overview_user_guide.php on line 30
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=uninstall_twitter_integration
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: wdReady is not defined" "ReferenceError: wdReady is not defined\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=uninstall_twitter_integration:218:6)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=uninstall_twitter_integration
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: wdReady is not defined
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
There were no plugin tags found
widget-twitter/twitter.php 92% from 13 tests
"WD WidgetTwitter" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("widget-twitter.php" instead of "twitter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,574 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 333 | 543 | 4,075 |
JavaScript | 6 | 187 | 153 | 2,008 |
CSS | 5 | 113 | 7 | 1,373 |
Markdown | 1 | 18 | 0 | 112 |
HTML | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 116 | |
▷ Static methods | 9 | 7.76% |
▷ Public methods | 115 | 99.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.86% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 4 | 44.44% |
▷ Class constants | 5 | 55.56% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
98 PNG files occupy 2.87MB with 1.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wd/assets/img/cfm_main_plugin.png | 11.31KB | 5.72KB | ▼ 49.41% |
images/user_prev.png | 102.96KB | 36.91KB | ▼ 64.15% |
images/hashtagpreview.png | 3.99KB | 2.37KB | ▼ 40.58% |
images/mention.png | 2.84KB | 1.44KB | ▼ 49.14% |
wd/assets/img/faqwd_main_plugin.png | 18.26KB | 10.31KB | ▼ 43.54% |