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.00MB] [CPU: ▼1.28ms] Passed 4 tests
An overview of server-side resources used by TwitterCart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.78 ▼2.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.86 ▼2.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.53 ▲3.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.23 ▲7.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.37 ▼3.31 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 170 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for TwitterCart
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.32 ▲0.07 | 1.63 ▼2.68 | 39.62 ▼4.61 |
Dashboard /wp-admin | 2,206 ▼3 | 5.81 ▼0.03 | 96.47 ▼5.13 | 40.45 ▲0.74 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▲0.02 | 40.07 ▲6.19 | 34.83 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.28 ▼0.10 | 633.84 ▼32.28 | 56.11 ▲1.28 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.31 ▲0.04 | 95.44 ▼16.84 | 47.22 ▲0.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
- 13× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/twittercart/includes/stats.php
- > /wp-content/plugins/twittercart/includes/templates/ajax/timeline_result.php
- > /wp-content/plugins/twittercart/includes/templates/myaccount_page.php
- > /wp-content/plugins/twittercart/twitter-cart.php
- > /wp-content/plugins/twittercart/includes/functions.php
- > /wp-content/plugins/twittercart/includes/setup.php
- > /wp-content/plugins/twittercart/includes/templates/support-page.php
- > /wp-content/plugins/twittercart/includes/twitter.php
- > /wp-content/plugins/twittercart/includes/user.php
- > /wp-content/plugins/twittercart/includes/products.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/twittercart/includes/templates/products_page.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: social analytics, woocommerce, amazon cart, ecommerce, social...
twittercart/twitter-cart.php 92% from 13 tests
"TwitterCart" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("twittercart.php" instead of "twitter-cart.php")
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
Everything looks great! No dangerous files found in this plugin14,587 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 114 | 284 | 5,378 |
CSS | 10 | 2,160 | 230 | 4,987 |
PHP | 16 | 662 | 489 | 2,813 |
PO File | 5 | 634 | 10 | 1,313 |
Markdown | 1 | 40 | 0 | 96 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 43.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 56.82% |
Functions | 88 | |
▷ Named functions | 88 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
110 PNG files occupy 0.31MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/nav_ico04.png | 1.22KB | 0.47KB | ▼ 61.72% |
assets/images/tc_cross.png | 2.61KB | 2.07KB | ▼ 20.55% |
assets/images/opt_ico02.png | 1.44KB | 0.78KB | ▼ 45.92% |
assets/images/upd_ico01.png | 1.50KB | 0.91KB | ▼ 39.57% |
assets/images/no_pic_fill.png | 2.09KB | 0.62KB | ▼ 70.43% |