Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/twitter-feed-widget/twitter-feed-widget.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; TSMTwitterFeedWidget has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼49.83ms] Passed 4 tests
Analyzing server-side resources used by Twitter Feed Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 5.04 ▼30.76 |
Dashboard /wp-admin | 2.16 ▼1.15 | 5.62 ▼40.80 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 5.70 ▼42.14 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 5.76 ▼85.62 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.68 ▼28.58 |
Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_tsm-twitter-feed-widget |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Twitter Feed Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲113 | 13.78 ▼0.87 | 7.63 ▲6.03 | 43.19 ▲0.84 |
Dashboard /wp-admin | 2,200 ▲19 | 5.59 ▼0.12 | 85.02 ▼16.55 | 36.90 ▼1.82 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.98 ▼0.04 | 35.99 ▼3.47 | 32.14 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.06 ▼0.39 | 599.66 ▼12.37 | 64.10 ▲8.65 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.22 ▲0.04 | 95.25 ▼1.58 | 41.02 ▼3.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/twitter-feed-widget/twitter-feed-widget.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; TSMTwitterFeedWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_tsm-twitter-feed-widget
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-feed-widget/twitter-feed-widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Example screenshot), #2 (Example screenshot), #3 (Example screenshot)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== twitter-feed-widget ===
)
twitter-feed-widget/twitter-feed-widget.php 92% from 13 tests
"Twitter Feed Widget" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 404 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected359 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 113 | 343 |
CSS | 1 | 0 | 1 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.49KB | 5.46KB | ▼ 72.00% |
screenshot-2.png | 26.62KB | 7.59KB | ▼ 71.48% |
screenshot-3.png | 12.12KB | 3.18KB | ▼ 73.78% |