Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.12ms] Passed 4 tests
This is a short check of server-side resources used by Twitter Feed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.19 ▼0.40 |
Dashboard /wp-admin | 3.36 ▲0.01 | 46.08 ▼14.09 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.59 ▼4.47 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.33 ▼9.53 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.51 ▲2.18 |
OT Twitter Feed /wp-admin/options-general.php?page=ottwitter | 3.25 | 31.66 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
recovery_mode_email_last_sent |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Twitter Feed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.22 ▼1.18 | 1.78 ▲0.01 | 43.44 ▼1.94 |
Dashboard /wp-admin | 2,212 ▲24 | 4.82 ▼1.08 | 107.99 ▼0.22 | 41.98 ▲2.79 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▼0.00 | 39.39 ▼0.93 | 35.14 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,522 ▲3 | 17.80 ▼5.64 | 626.62 ▲11.68 | 48.50 ▼15.81 |
Media Library /wp-admin/upload.php | 1,394 ▲15 | 4.27 ▲0.06 | 95.08 ▼7.25 | 44.33 ▲0.30 |
OT Twitter Feed /wp-admin/options-general.php?page=ottwitter | 739 | 1.14 | 7.01 | 21.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=ottwitter
- > Notice in wp-content/plugins/ot-twitter-feed/functions.php+28
Undefined index: ottwitter_animate
- > GET request to /wp-admin/options-general.php?page=ottwitter
- > Error in wp-content/plugins/ot-twitter-feed/functions.php+31
Uncaught Error: Call to undefined function otfbmsg_e() in wp-content/plugins/ot-twitter-feed/functions.php:31
Stack trace:
#0 wp-admin/includes/template.php(1824): ottwitter_animate_callback()
#1 wp-admin/includes/template.php(1778): do_settings_fields()
#2 wp-content/plugins/ot-twitter-feed/ottwitterfeed-setting.php(33): do_settings_sections()
#3 wp-content/plugins/ot-twitter-feed/ottwitterfeed.php(63): include_once('/var/www/wordpr...')
#4 wp-includes/class-wp-hook.php(310): ottwitter_setting()
#5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 wp-includes/plugin.php(517): WP_Hook->do_action()
#7 wp-admin/admin.php(259): do_action()
#8 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#9 {main}
thrown
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 take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/ot-twitter-feed/ottwitterfeed-setting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ot-twitter-feed/ottwitterfeed-shortcode.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ot-twitter-feed/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ot-twitter-feed/ottwitterfeed.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: twitter, twitter feed, twitter feed slide
ot-twitter-feed/ottwitterfeed.php 85% from 13 tests
The primary PHP file in "Twitter Feed" version 1.3.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ot-twitter-feed.php" instead of "ottwitterfeed.php")
- Description: The description should be shorter than 140 characters (currently 181 characters long)
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 plugin1,095 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 20 | 20 | 569 |
SVG | 1 | 0 | 0 | 288 |
PHP | 4 | 33 | 20 | 236 |
JavaScript | 1 | 0 | 5 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/twitter.png | 4.17KB | 1.57KB | ▼ 62.34% |
assets/images/icon.png | 3.25KB | 0.66KB | ▼ 79.78% |
assets/images/powered_icon.png | 1.43KB | 0.45KB | ▼ 68.87% |