Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.28MB] [CPU: ▼8.76ms] Passed 4 tests
A check of server-side resources used by Tools for Twitter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 39.78 ▼6.59 |
Dashboard /wp-admin | 3.65 ▲0.30 | 52.74 ▼14.62 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 56.70 ▲3.75 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 88.17 ▼17.59 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 41.54 ▲4.28 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_aktt-widget |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Tools for Twitter: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲28 | 14.25 ▲0.13 | 2.26 ▲0.29 | 40.36 ▼0.86 |
Dashboard /wp-admin | 2,208 ▲28 | 5.67 ▲0.01 | 90.11 ▼7.24 | 42.99 ▲1.86 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.97 ▼0.00 | 35.97 ▼1.30 | 33.91 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.14 ▼0.42 | 708.41 ▲6.84 | 65.39 ▲4.70 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.24 ▲0.07 | 113.53 ▲0.59 | 47.64 ▲0.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_aktt-widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wptexturize() in wp-content/plugins/twitter-tools/views/tweet.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/twitter-tools/widget.php:3
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/twitter-tools/views/tweet-list.php on line 4
- > PHP Notice
Undefined variable: account in wp-content/plugins/twitter-tools/views/admin-account.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/twitter-tools//classes/aktt.php' (include_path='.:/usr/share/php') in wp-content/plugins/twitter-tools/twitter-tools.php on line 38
- > PHP Notice
Undefined variable: tweets in wp-content/plugins/twitter-tools/views/tweet-list.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-tools/classes/aktt_account.php:217
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/twitter-tools/views/admin-account.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/twitter-tools/views/admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/twitter-tools/views/tweet-list.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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 your attention:
- Screenshots: Add images for these screenshots: #1 (Show your tweets on your site (optional).), #2 (Tweets can be viewed by account, @mention or #hashtag.), #3 (Manage your tweets in the standard WordPress admin interface.), #4 (View tweets by @mention, #hashtag, etc.), #5 (Easy interface to for per-account settings.)
twitter-tools/twitter-tools.php 92% from 13 tests
The principal PHP file in "Tools for Twitter" v. 3.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 196 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,208 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 245 | 552 | 2,208 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 60.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 46 | 49.46% |
▷ Public methods | 93 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.65MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 94.14KB | 32.25KB | ▼ 65.74% |
screenshot-2.png | 38.09KB | 11.25KB | ▼ 70.48% |
screenshot-5.png | 130.59KB | 44.66KB | ▼ 65.80% |
screenshot-1.png | 340.23KB | 103.05KB | ▼ 69.71% |
assets/img/bg-clouds.png | 7.46KB | 6.98KB | ▼ 6.46% |