Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.05ms] Passed 4 tests
Analyzing server-side resources used by Custom twitter widget pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.27 ▲4.44 |
Dashboard /wp-admin | 3.40 ▲0.09 | 44.64 ▼6.27 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.34 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.27 ▼11.95 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.07 ▲1.03 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
ETWP_settings |
widget_recent-posts |
widget_etw_twitter |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
ETWP_twitter_sticky_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Custom twitter widget pro
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 13.54 ▼0.83 | 2.33 ▲0.57 | 41.31 ▼3.84 |
Dashboard /wp-admin | 2,222 ▲31 | 4.82 ▼1.08 | 104.93 ▼1.21 | 42.31 ▲0.19 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.01 ▼0.00 | 39.72 ▲4.29 | 35.56 ▲5.74 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 18.48 ▼4.55 | 604.53 ▼36.05 | 51.15 ▼1.58 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.22 ▲0.04 | 96.00 ▼5.51 | 42.28 ▼4.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- widget_recent-comments
- ETWP_settings
- widget_etw_twitter
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- ETWP_twitter_sticky_settings
- 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
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/custom-twitter-widget-pro/default_settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-twitter-widget-pro/twitter-shortcode.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/custom-twitter-widget-pro/custom-twitter-widget-pro.php:17
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
custom-twitter-widget-pro/custom-twitter-widget-pro.php Passed 13 tests
The main PHP script in "Custom twitter widget pro" version 2.4 is automatically included on every request by WordPress
110 characters long description:
Display twitter feed on your WordPress site by using this plugin. Simply add your user name in widget setting.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected966 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 123 | 58 | 465 |
JavaScript | 4 | 4 | 13 | 448 |
CSS | 1 | 8 | 1 | 53 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/icon128.png | 6.40KB | 1.93KB | ▼ 69.83% |
image/twitter_icon-jpg1.png | 16.68KB | 8.86KB | ▼ 46.86% |
image/twitter-icon.png | 17.92KB | 0.67KB | ▼ 96.26% |