Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼1.55ms] Passed 4 tests
A check of server-side resources used by Awesome Twitter Feeds
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.90 ▼8.76 |
Dashboard /wp-admin | 3.55 ▲0.25 | 50.33 ▼4.30 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 55.20 ▲5.67 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 92.90 ▲1.75 |
Media Library /wp-admin/upload.php | 3.47 ▲0.25 | 41.70 ▲5.12 |
Add new /wp-admin/post-new.php?post_type=atfeeds | 3.52 | 53.89 |
All feeds /wp-admin/edit.php?post_type=atfeeds | 3.52 | 36.49 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 67 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_atf_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Awesome Twitter Feeds
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.93 ▼0.44 | 8.74 ▲6.99 | 45.87 ▲1.84 |
Dashboard /wp-admin | 2,245 ▲71 | 5.81 ▲0.19 | 95.87 ▼3.72 | 41.66 ▼1.74 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.30 ▲0.29 | 38.48 ▲2.05 | 34.22 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,564 ▲27 | 23.38 ▲5.33 | 691.25 ▲69.80 | 36.62 ▼30.24 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.54 ▲0.35 | 111.31 ▲14.02 | 48.23 ▲0.34 |
Add new /wp-admin/post-new.php?post_type=atfeeds | 1,752 | 2.80 | 54.25 | 42.27 |
All feeds /wp-admin/edit.php?post_type=atfeeds | 1,131 | 2.23 | 33.94 | 26.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/awesome-twitter-feeds/uninstall.php+7
Invalid argument supplied for foreach()
- Zombie WordPress options were found after uninstall: 7 options
- widget_atf_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 18× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/awesome-twitter-feeds/inc/avs-metaboxes-master/classes/field-types/class.avs-metabox-field-email.php
- > /wp-content/plugins/awesome-twitter-feeds/inc/avs-metaboxes-master/classes/field-types/class.avs-metabox-field-select.php
- > /wp-content/plugins/awesome-twitter-feeds/inc/avs-metaboxes-master/classes/field-types/class.avs-metabox-field-textarea.php
- > /wp-content/plugins/awesome-twitter-feeds/inc/avs-metaboxes-master/init.php
- > /wp-content/plugins/awesome-twitter-feeds/classes/class-atf-plugin.php
- > /wp-content/plugins/awesome-twitter-feeds/inc/avs-metaboxes-master/classes/field-types/class.avs-metabox-field-text.php
- > /wp-content/plugins/awesome-twitter-feeds/inc/avs-metaboxes-master/classes/field-types/class.avs-metabox-field-number.php
- > /wp-content/plugins/awesome-twitter-feeds/inc/avs-metaboxes-master/classes/field-types/class.avs-metabox-field-editor.php
- > /wp-content/plugins/awesome-twitter-feeds/inc/avs-metaboxes-master/classes/field-types/class.avs-metabox-field-image.php
- > /wp-content/plugins/awesome-twitter-feeds/classes/class-atf-widget.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/tests/TwitterOAuthTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/src/HmacSha1.php:15
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/tests/Util/JsonDecoderTest.php:7
- > PHP Warning
require(wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Avs_Metabox_Wrapper\\Avs_Metabox' not found in wp-content/plugins/awesome-twitter-feeds/inc/avs-metaboxes-master/examples/full.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-twitter-feeds/templates/template-widget-admin.php:1
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Tests\\AbstractSignatureMethodTest' not found in wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/tests/HmacSha1Test.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/tests/ConsumerTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/awesome-twitter-feeds/inc/twitteroauth-master/tests/AbstractSignatureMethodTest.php:7
- > 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 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Donate link: Please fix this invalid url: "mailto:albertodeverasevilla@gmail.com"
awesome-twitter-feeds/main.php 85% from 13 tests
The entry point to "Awesome Twitter Feeds" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 250 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("awesome-twitter-feeds.php" instead of "main.php")
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
Success! There were no dangerous files found in this plugin3,703 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 443 | 846 | 2,073 |
CSS | 5 | 45 | 27 | 1,063 |
JavaScript | 2 | 64 | 32 | 316 |
PO File | 1 | 56 | 56 | 125 |
Markdown | 3 | 12 | 0 | 41 |
JSON | 1 | 0 | 0 | 34 |
XML | 2 | 2 | 1 | 23 |
SVG | 1 | 0 | 0 | 17 |
YAML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 3 | 9.38% |
▷ Concrete classes | 29 | 90.62% |
▷ Final classes | 12 | 41.38% |
Methods | 177 | |
▷ Static methods | 7 | 3.95% |
▷ Public methods | 158 | 89.27% |
▷ Protected methods | 5 | 2.82% |
▷ Private methods | 14 | 7.91% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 18 | |
▷ Global constants | 14 | 77.78% |
▷ Class constants | 4 | 22.22% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon_play.png | 16.37KB | 1.60KB | ▼ 90.20% |
assets/img/icon_twitter.png | 2.03KB | 0.83KB | ▼ 58.91% |