Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/twitter-feeds/twitter-feeds.php+608
Methods with the same name as their class will not be constructors in a future version of PHP; VIAVI_Twitter_Widget has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼55.29ms] Passed 4 tests
This is a short check of server-side resources used by Twitter Feeds
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 6.06 ▼37.75 |
Dashboard /wp-admin | 2.19 ▼1.12 | 6.49 ▼40.73 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 6.80 ▼45.15 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 5.73 ▼97.52 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.49 ▼31.59 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
widget_twitter_feeds_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Twitter Feeds
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲151 | 13.44 ▼1.14 | 1.94 ▲0.13 | 43.93 ▼4.36 |
Dashboard /wp-admin | 2,266 ▲78 | 5.07 ▼0.84 | 100.72 ▼5.69 | 78.41 ▲34.95 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.28 ▲0.29 | 38.14 ▼4.74 | 33.02 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.36 ▲0.72 | 608.02 ▼47.71 | 40.53 ▼19.48 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.42 ▲0.21 | 100.11 ▼15.23 | 72.36 ▲25.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/twitter-feeds/twitter-feeds.php+608
Methods with the same name as their class will not be constructors in a future version of PHP; VIAVI_Twitter_Widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_twitter_feeds_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-feeds/twitter-feeds.php:14
- > 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 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== twitter-feeds ===
) - Donate link: Please fix this invalid URI: ""
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings Screen from WordPress Admin.), #2 (Widget Setting example in admin.), #3 (Widget view on front side.)
twitter-feeds/twitter-feeds.php Passed 13 tests
Analyzing the main PHP file in "Twitter Feeds" version 1.0.0
137 characters long description:
Twitter feeds that outputs your latest tweets in HTML into any post, page or sidebar widget. Customizable,Colorful and easy to configure!
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
Good job! No executable or dangerous file extensions detected1,028 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 577 | 353 | 974 |
CSS | 1 | 1 | 0 | 27 |
JavaScript | 1 | 0 | 3 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 10 | 12.50% |
▷ Public methods | 69 | 86.25% |
▷ Protected methods | 2 | 2.50% |
▷ Private methods | 9 | 11.25% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 15.45KB | 6.50KB | ▼ 57.93% |
screenshot-1.png | 147.29KB | 49.79KB | ▼ 66.19% |
css/twitter_icon.png | 0.72KB | 0.73KB | 0.00% |
screenshot-3.png | 74.46KB | 28.50KB | ▼ 61.73% |