Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.22ms] Passed 4 tests
A check of server-side resources used by WordPress Dashboard Tweeter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.04 ▼7.19 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.35 ▼4.73 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.09 ▲2.03 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.19 ▲2.40 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.73 ▲1.02 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Dashboard Tweeter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼0.95 | 1.58 ▼0.35 | 38.85 ▼6.03 |
Dashboard /wp-admin | 2,213 ▲39 | 5.86 ▼0.02 | 108.33 ▼10.18 | 39.73 ▼8.04 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.01 | 39.32 ▲3.59 | 37.76 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 18.62 ▼4.67 | 625.00 ▼84.79 | 56.22 ▼5.23 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▲0.01 | 97.63 ▼2.06 | 45.78 ▲2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wordpress-dashboard-twitter/wpdt.class.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wordpress-dashboard-twitter/wp-dashboard-twitter.php:38
- > PHP Notice
Undefined index: wp_version in wp-content/plugins/wordpress-dashboard-twitter/wpdt.class.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/wordpress-dashboard-twitter/inc/vendor/abraham/twitteroauth/src/TwitterOAuth.php:27
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/wordpress-dashboard-twitter/inc/vendor/abraham/twitteroauth/src/HmacSha1.php:19
- > PHP Fatal error
Uncaught Error: Class 'WPDashboardTwitter' not found in wp-content/plugins/wordpress-dashboard-twitter/inc/wpdt-helper.class.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in wordpress-dashboard-twitter/assets to your readme.txt
wordpress-dashboard-twitter/wp-dashboard-twitter.php 77% from 13 tests
Analyzing the main PHP file in "WordPress Dashboard Tweeter" version 1.3.2
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wordpress-dashboard-twitter.php" instead of "wp-dashboard-twitter.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 193 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
There were no executable files found in this plugin4,170 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 564 | 1,951 | 2,641 |
PO File | 8 | 399 | 725 | 1,056 |
JSON | 4 | 0 | 0 | 265 |
CSS | 2 | 25 | 0 | 127 |
Markdown | 2 | 29 | 0 | 78 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 2 | 9.09% |
▷ Concrete classes | 20 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 48 | 24.37% |
▷ Public methods | 164 | 83.25% |
▷ Protected methods | 7 | 3.55% |
▷ Private methods | 26 | 13.20% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 23 | |
▷ Global constants | 8 | 34.78% |
▷ Class constants | 15 | 65.22% |
▷ Public constants | 12 | 80.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/retweet.png | 1.07KB | 0.14KB | ▼ 87.03% |
inc/img/reply.png | 1.13KB | 0.19KB | ▼ 83.09% |
inc/img/reply_hover.png | 1.13KB | 0.18KB | ▼ 83.65% |
inc/img/twitter_signin_badge.png | 1.93KB | 2.05KB | 0.00% |
inc/img/retweet_hover.png | 1.07KB | 0.14KB | ▼ 87.10% |