Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.49ms] Passed 4 tests
A check of server-side resources used by Recent Tweet Widget AFO
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.54 ▼0.62 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.82 ▼2.18 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 43.40 ▼4.65 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.91 ▼17.43 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.79 ▼1.68 |
Twitter Widget Settings /wp-admin/options-general.php?page=tweet_widget_afo_menu | 3.27 | 34.02 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_tweet_wid |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Recent Tweet Widget AFO
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.29 ▼1.09 | 1.77 ▼0.02 | 43.40 ▼0.79 |
Dashboard /wp-admin | 2,215 ▲30 | 5.84 ▲0.05 | 106.73 ▲2.91 | 42.61 ▼0.22 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.01 ▼0.01 | 32.43 ▼2.85 | 33.93 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.41 ▲0.61 | 662.33 ▲18.52 | 46.28 ▼5.28 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▼0.00 | 92.44 ▼10.76 | 41.14 ▼6.59 |
Twitter Widget Settings /wp-admin/options-general.php?page=tweet_widget_afo_menu | 1,002 | 2.02 | 24.06 | 32.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_tweet_wid
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/twitter-feed-afo/view/admin/help-support.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/twitter-feed-afo/view/admin/settings.php:3
- > PHP Notice
Undefined variable: tweets in wp-content/plugins/twitter-feed-afo/view/frontend/widget.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/twitter-feed-afo/view/admin/donate.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-feed-afo/tweet-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-feed-afo/tweet-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/twitter-feed-afo/view/frontend/widget.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
twitter-feed-afo/twitter-feed.php 85% from 13 tests
"Recent Tweet Widget AFO" version 2.2.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("twitter-feed-afo.php" instead of "twitter-feed.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,034 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 203 | 321 | 971 |
CSS | 2 | 5 | 2 | 45 |
PO File | 1 | 8 | 0 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 2 | 11.76% |
▷ Concrete classes | 15 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 10 | 10.53% |
▷ Public methods | 83 | 87.37% |
▷ Protected methods | 2 | 2.11% |
▷ Private methods | 10 | 10.53% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paypal.png | 0.77KB | 0.80KB | 0.00% |
images/rss.png | 0.60KB | 0.50KB | ▼ 16.18% |