Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.67ms] Passed 4 tests
This is a short check of server-side resources used by Customize Feeds for Twitter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.23 ▲3.05 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.09 ▼5.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.64 ▲0.67 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.59 ▼12.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.89 ▲2.89 |
Server storage [IO: ▲4.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 123 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_weblizar_twitter |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Customize Feeds for Twitter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲210 | 14.12 ▼0.06 | 35.50 ▲33.85 | 45.02 ▲1.86 |
Dashboard /wp-admin | 2,208 ▲28 | 5.61 ▼0.03 | 92.16 ▲4.53 | 40.36 ▼0.00 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.03 ▲0.07 | 39.85 ▼1.16 | 36.22 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.21 ▼0.33 | 641.04 ▼56.44 | 49.99 ▼3.56 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.24 ▲0.02 | 97.81 ▼16.80 | 41.11 ▼7.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- widget_weblizar_twitter
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/tests/AbstractSignatureMethodTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-tweets/twitter_tweets_widgets.php:2
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/src/TwitterOAuth.php:16
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/src/HmacSha1.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/tests/Util/JsonDecoderTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/tests/TokenTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/tests/ConsumerTest.php:7
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Tests\\AbstractSignatureMethodTest' not found in wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/tests/HmacSha1Test.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/twitter-tweets/vendor_old/abraham/twitteroauth/tests/TwitterOAuthTest.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: tweets, twitter, twitter wordpress plugin, twitter widget, twitter feed...
twitter-tweets/twitter-tweets.php 92% from 13 tests
The main PHP script in "Customize Feeds for Twitter" version 2.2.0 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin16,966 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 8,777 |
PHP | 60 | 793 | 2,130 | 4,666 |
JavaScript | 6 | 19 | 26 | 1,336 |
CSS | 5 | 89 | 31 | 951 |
PO File | 2 | 335 | 417 | 684 |
JSON | 5 | 0 | 0 | 352 |
Markdown | 6 | 63 | 0 | 147 |
XML | 2 | 2 | 1 | 23 |
YAML | 1 | 0 | 0 | 17 |
Bourne Shell | 1 | 4 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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.33 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 3 | 7.69% |
▷ Concrete classes | 36 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 310 | |
▷ Static methods | 73 | 23.55% |
▷ Public methods | 252 | 81.29% |
▷ Protected methods | 6 | 1.94% |
▷ Private methods | 52 | 16.77% |
Functions | 23 | |
▷ Named functions | 13 | 56.52% |
▷ Anonymous functions | 10 | 43.48% |
Constants | 16 | |
▷ Global constants | 10 | 62.50% |
▷ Class constants | 6 | 37.50% |
▷ Public constants | 3 | 50.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin