Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/twitter-home-time-line/twitter.php+141
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_TwitterHomeTimeline has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.80ms] Passed 4 tests
This is a short check of server-side resources used by Twitter Home Time line
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 8.66 ▼34.05 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.11 ▼43.49 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.89 ▼39.12 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.84 ▼90.54 |
Media Library /wp-admin/upload.php | 2.10 ▼1.12 | 4.81 ▼25.18 |
Twitter Home Timeline Options /wp-admin/options-general.php?page=TwitterHomeTimeline | 2.10 | 5.25 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_twitter-home-timeline |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Twitter Home Time line: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.30 ▼1.29 | 4.77 ▲2.66 | 42.26 ▼1.64 |
Dashboard /wp-admin | 2,204 ▲19 | 5.83 ▼0.05 | 98.59 ▼4.20 | 40.10 ▼0.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.05 | 38.80 ▼10.54 | 36.90 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.54 ▲0.23 | 596.77 ▼26.93 | 51.21 ▼4.96 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.28 ▲0.11 | 95.63 ▼9.77 | 43.49 ▼2.39 |
Twitter Home Timeline Options /wp-admin/options-general.php?page=TwitterHomeTimeline | 801 | 2.05 | 24.91 | 26.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/twitter-home-time-line/twitter.php+141
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_TwitterHomeTimeline has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_twitter-home-timeline
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=TwitterHomeTimeline
- > Deprecated in wp-content/plugins/twitter-home-time-line/twitter.php+141
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_TwitterHomeTimeline has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=TwitterHomeTimeline
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in WP_Widget_TwitterHomeTimeline is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=TwitterHomeTimeline
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=TwitterHomeTimeline
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/options-general.php?page=TwitterHomeTimeline
- > Warning in wp-content/plugins/twitter-home-time-line/twitter.php+248
Use of undefined constant submit - assumed 'submit' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=TwitterHomeTimeline
- > Notice in wp-content/plugins/twitter-home-time-line/twitter.php+248
Undefined index: submit
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/twitter-home-time-line/index.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-home-time-line/twitter.php:141
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (The widget in action) image required
twitter-home-time-line/twitter.php 92% from 13 tests
The entry point to "Twitter Home Time line" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("twitter-home-time-line.php" instead of "twitter.php")
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
Everything looks great! No dangerous files found in this plugin840 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 274 | 336 | 813 |
CSS | 1 | 3 | 0 | 27 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 10 | 12.50% |
▷ Public methods | 69 | 86.25% |
▷ Protected methods | 2 | 2.50% |
▷ Private methods | 9 | 11.25% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 18.36KB | 9.22KB | ▼ 49.75% |