Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼2.41ms] 75% from 4 tests
This is a short check of server-side resources used by Twitter Widget Pro
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,936.44ms on /wp-admin/options-general.php?page=twitterWidgetPro)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 40.07 ▼3.98 |
Dashboard /wp-admin | 3.75 ▲0.44 | 48.86 ▼3.95 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 52.87 ▲11.82 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 85.72 ▼7.19 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 38.77 ▲5.48 |
Twitter Widget /wp-admin/options-general.php?page=twitterWidgetPro | 4.71 | 1,936.44 |
Server storage [IO: ▲0.22MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_twitter |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Twitter Widget Pro
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.39 ▲0.04 | 1.52 ▼0.23 | 37.45 ▼9.30 |
Dashboard /wp-admin | 2,205 ▲28 | 5.53 ▼0.06 | 89.43 ▼14.90 | 37.57 ▼4.80 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.97 ▼0.01 | 34.34 ▼3.09 | 33.85 ▲2.86 |
Add New Post /wp-admin/post-new.php | 1,553 ▲18 | 18.33 ▲0.12 | 632.84 ▼24.59 | 76.87 ▲9.76 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.31 ▲0.11 | 94.12 ▼8.33 | 41.18 ▼0.99 |
Twitter Widget /wp-admin/options-general.php?page=twitterWidgetPro | 1,623 | 4.91 | 52.12 | 57.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_twitter
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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)
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-widget-pro/class.wp_widget_twitter_pro.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-widget-pro/tlc-transients.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-widget-pro/tlc-transients.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: feed, widget, twitter
twitter-widget-pro/wp-twitter-widget.php 85% from 13 tests
The main PHP script in "Twitter Widget Pro" version 2.9.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("twitter-widget-pro.php" instead of "wp-twitter-widget.php")
- Description: Keep the plugin description shorter than 140 characters (currently 161 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
Everything looks great! No dangerous files found in this plugin2,783 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 255 | 319 | 1,701 |
PO File | 7 | 427 | 555 | 1,082 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 41.83 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 8 | 7.77% |
▷ Public methods | 76 | 73.79% |
▷ Protected methods | 6 | 5.83% |
▷ Private methods | 21 | 20.39% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected