Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/responsive-twitter-widget/twitter-widget.php+23
Methods with the same name as their class will not be constructors in a future version of PHP; pix_responsive_twitter_feed has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼58.65ms] Passed 4 tests
This is a short check of server-side resources used by responsive-twitter-widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.59 ▼35.37 |
Dashboard /wp-admin | 2.10 ▼1.25 | 5.80 ▼58.85 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.56 ▼47.36 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.30 ▼93.00 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.68 ▼29.22 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_pix_responsive_twitter |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for responsive-twitter-widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 13.26 ▼1.32 | 2.02 ▼0.07 | 48.16 ▲6.94 |
Dashboard /wp-admin | 2,224 ▲21 | 4.85 ▼1.05 | 99.27 ▼6.18 | 40.23 ▼4.88 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.04 | 35.93 ▼0.10 | 33.58 ▼3.88 |
Add New Post /wp-admin/post-new.php | 1,545 ▼11 | 23.02 ▲4.73 | 637.86 ▼11.93 | 60.20 ▲10.34 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.12 | 98.89 ▼8.25 | 46.09 ▲3.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/responsive-twitter-widget/twitter-widget.php+23
Methods with the same name as their class will not be constructors in a future version of PHP; pix_responsive_twitter_feed has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_pix_responsive_twitter
- theysaidso_admin_options
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
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 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Twitter Widget in action), #2 (Twitter Widget ID Collection options), #3 (Admin dashboard Widget Settings)
- Tags: Too many tags (101 tag instead of maximum 10); only the first 5 tags are used in your directory listing
responsive-twitter-widget/twitter-widget.php 92% from 13 tests
"responsive-twitter-widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("responsive-twitter-widget.php" instead of "twitter-widget.php")
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 detected129 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 1 | 30 | 97 |
CSS | 1 | 3 | 3 | 32 |
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.07 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.27MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 14.50KB | 6.93KB | ▼ 52.22% |
screenshot-2.png | 92.78KB | 36.86KB | ▼ 60.27% |
screenshot-1.png | 166.52KB | 72.21KB | ▼ 56.64% |