Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.13ms] Passed 4 tests
Analyzing server-side resources used by Twitter Account Box aka TAB
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.53 ▼4.86 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.66 ▼4.80 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.29 ▲0.49 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.35 ▲9.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.62 ▲4.67 |
Twitter Account Box /wp-admin/options-general.php?page=twitteraccountbox | 3.22 | 31.66 |
Server storage [IO: ▲0.95MB] [DB: ▲0.31MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_twitteraccountbox_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Twitter Account Box aka TAB
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲141 | 13.95 ▼0.42 | 29.09 ▲27.00 | 42.16 ▼2.65 |
Dashboard /wp-admin | 2,214 ▲29 | 4.84 ▼1.02 | 109.27 ▼11.21 | 42.17 ▼4.18 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▼0.01 | 39.09 ▲1.16 | 34.38 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 18.34 ▼5.33 | 638.62 ▼12.81 | 79.04 ▲11.41 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.28 ▲0.11 | 92.68 ▼0.62 | 40.49 ▲1.28 |
Twitter Account Box /wp-admin/options-general.php?page=twitteraccountbox | 909 | 2.03 | 27.80 | 43.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_twitteraccountbox_widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/twitter-account-box/includes/vendor/twitter/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-account-box/public/class-twitter-account-box-widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Admin panel settings), #2 (Twitter Account Box in action), #3 (Go to dev.twitter.com and click "Developers -> Documentation"), #4 (Click "Manage My Apps"), #5 (Click "Create New App"), #6 (Create Twitter App), #7 (Go to "API-keys" page and click "Create Access Token"), #8 (Get key, token and secrets)
twitter-account-box/twitter-account-box.php Passed 13 tests
"Twitter Account Box aka TAB" version 0.2.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
This plugin adds your Twitter account details box in your Wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,967 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 144 | 386 | 745 |
HTML | 2 | 4 | 0 | 537 |
CSS | 13 | 46 | 90 | 276 |
PO File | 2 | 84 | 100 | 176 |
JSON | 3 | 0 | 0 | 116 |
Markdown | 2 | 31 | 0 | 81 |
SVG | 2 | 0 | 0 | 35 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 15 | 31.91% |
▷ Public methods | 35 | 74.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 25.53% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.75MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 74.52KB | 24.55KB | ▼ 67.06% |
screenshot-2.png | 147.40KB | 145.45KB | ▼ 1.32% |
public/images/twitteraccountbox-example.png | 83.42KB | 84.01KB | 0.00% |
screenshot-4.png | 130.22KB | 130.09KB | 0.10% |
public/images/empty_image.png | 1.77KB | 0.31KB | ▼ 82.32% |