Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.80ms] Passed 4 tests
This is a short check of server-side resources used by Full Twitter Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 46.14 ▲2.89 |
Dashboard /wp-admin | 3.36 ▲0.06 | 56.58 ▼1.54 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.31 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.04 ▼19.96 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.20 ▲4.56 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
widget_fti_slider_widget |
widget_fti_tweets_by_hashtag_widget |
widget_theysaidso_widget |
widget_fti_user_tweets_widget |
widget_fti_tweets_by_user_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Full Twitter Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲127 | 13.46 ▼1.27 | 8.13 ▲6.14 | 46.03 ▲1.32 |
Dashboard /wp-admin | 2,211 ▲31 | 5.63 ▼0.07 | 85.34 ▼8.01 | 41.05 ▼4.36 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.00 ▲0.03 | 37.70 ▼2.13 | 31.72 ▼6.26 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.76 ▲0.65 | 648.80 ▲0.65 | 54.48 ▲2.28 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.18 ▼0.05 | 97.70 ▼9.32 | 44.04 ▼3.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_fti_tweets_by_hashtag_widget
- widget_fti_user_tweets_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_fti_tweets_by_user_widget
- theysaidso_admin_options
- widget_fti_slider_widget
- db_upgraded
Smoke tests 75% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/full-twitter-integration/twitteroauth-master/src/HmacSha1.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/full-twitter-integration/admin/widgets/fti-tweets-by-user-widget.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/full-twitter-integration/admin/widgets/fti-tweets-by-hashtag-widget.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/full-twitter-integration/includes/class-full-twitter-api.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/full-twitter-integration/admin/widgets/fti-user-tweets-widget.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/full-twitter-integration/admin/widgets/fti-tweets-by-timeline.php:12
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/full-twitter-integration/twitteroauth-master/src/TwitterOAuth.php:16
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: integration, api, tweets, social, twitter...
full-twitter-integration/full-twitter-integration.php Passed 13 tests
The main PHP file in "Full Twitter Integration" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
120 characters long description:
Use all the twitter APIs functions in your website. Search by HASHTAGS, get the FOLLOWERS, display your TWEETS and more.
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 plugin2,824 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 574 | 936 | 2,071 |
CSS | 2 | 107 | 22 | 548 |
JavaScript | 1 | 25 | 3 | 119 |
JSON | 1 | 0 | 0 | 34 |
Markdown | 2 | 7 | 0 | 25 |
YAML | 1 | 0 | 0 | 17 |
XML | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 1 | 3.57% |
▷ Concrete classes | 27 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 9 | 5.00% |
▷ Public methods | 156 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 13.33% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/images/icon-256x256.png | 0.00KB | 0.00KB | 0.00% |
admin/images/widget-mode.png | 25.75KB | 10.39KB | ▼ 59.64% |
assets/icon-256x256.png | 31.63KB | 13.57KB | ▼ 57.11% |
assets/screenshot-1.png | 18.79KB | 7.99KB | ▼ 57.48% |
assets/banner-772x250.png | 31.12KB | 14.79KB | ▼ 52.47% |