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
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/random-tweet-widget/random_tweet_widget.php+261
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼64.17ms] Passed 4 tests
Server-side resources used by Random Tweet Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.99 ▼33.83 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.02 ▼42.09 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.33 ▼43.66 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.66 ▼137.08 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.71 ▼28.43 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_randomtweetwidget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Random Tweet Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.32 ▼0.85 | 1.62 ▼0.47 | 39.85 ▼3.91 |
Dashboard /wp-admin | 2,206 ▲14 | 4.87 ▼0.02 | 107.96 ▼12.40 | 43.34 ▲0.84 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▲0.03 | 40.35 ▲0.83 | 34.12 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.69 ▼5.64 | 596.50 ▼58.30 | 47.57 ▼4.30 |
Media Library /wp-admin/upload.php | 1,379 ▼9 | 4.21 ▲0.01 | 100.45 ▼0.97 | 43.55 ▲2.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/random-tweet-widget/random_tweet_widget.php+261
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_randomtweetwidget
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 50% 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Codebird' not found in wp-content/plugins/random-tweet-widget/lib/class-wp-codebird.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/random-tweet-widget/random_tweet_widget.php:21
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Requires at least: Invalid plugin version format
random-tweet-widget/random_tweet_widget.php 92% from 13 tests
The main PHP file in "Random Tweet Widget" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("random-tweet-widget.php" instead of "random_tweet_widget.php")
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
Everything looks great! No dangerous files found in this plugin916 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 157 | 393 | 916 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 48.67 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 16 | 48.48% |
▷ Protected methods | 5 | 15.15% |
▷ Private methods | 12 | 36.36% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG files were detected