Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼11.72ms] Passed 4 tests
Analyzing server-side resources used by Twitter User Timelines
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 33.57 ▼4.53 |
Dashboard /wp-admin | 3.40 ▲0.05 | 41.44 ▼20.03 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.26 ▲2.75 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 76.39 ▼19.55 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 32.83 ▼2.75 |
Twitter Timelines /wp-admin/options-general.php?page=twitter-user-timelines-settings | 3.29 | 29.47 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_twitter-user-timelines |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Twitter User Timelines
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.34 ▼0.14 | 1.58 ▼0.04 | 36.59 ▼9.11 |
Dashboard /wp-admin | 2,202 ▲24 | 5.62 ▼0.01 | 96.82 ▼3.38 | 43.32 ▲3.32 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.04 | 39.40 ▲4.69 | 35.11 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 22.86 ▼0.15 | 653.35 ▲61.08 | 60.95 ▲9.18 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.21 ▼0.03 | 94.05 ▼3.05 | 40.91 ▼1.74 |
Twitter Timelines /wp-admin/options-general.php?page=twitter-user-timelines-settings | 805 | 2.00 | 27.24 | 26.87 |
Uninstaller [IO: ▲0.09MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the followingThis plugin did not uninstall successfully, leaving 8 options in the database
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/twitter-user-timelines/uninstall.php+9
Undefined variable: wpdb
- This plugin has failed uninstalling correctly, leaving 17 files (0.09MB) in the plugin directory
- (new file) images/everything-sprite-light.png
- (new file) humans.txt
- (new file) images/twitter-icon.png
- (new file) images/everything-sprite-dark.png
- (new file) license.txt
- (new file) class-twitter-user-timeline.php
- (new file) lang/twitter-user-timelines-hu_HU.po
- (new file) lang/translation.pot
- (new file) lang/twitter-user-timelines-hu_HU.mo
- (new file) class-tut-twitter.php
- ...
- can_compress_scripts
- widget_recent-comments
- widget_twitter-user-timelines
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-user-timelines/class-twitter-user-timeline.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-user-timelines/class-twitter-user-timeline.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: twitter, social, widget
twitter-user-timelines/twitter-user-timelines.php 92% from 13 tests
"Twitter User Timelines" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected687 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 123 | 313 | 345 |
CSS | 3 | 41 | 18 | 249 |
PO File | 1 | 24 | 28 | 68 |
JavaScript | 1 | 5 | 0 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/everything-sprite-dark.png | 15.94KB | 1.59KB | ▼ 90.03% |
images/everything-sprite-light.png | 15.73KB | 1.55KB | ▼ 90.12% |
images/twitter-icon.png | 0.25KB | 0.43KB | 0.00% |