Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.94ms] Passed 4 tests
Analyzing server-side resources used by Twitter API Master - Twitter Widgets For WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 45.17 ▼0.50 |
Dashboard /wp-admin | 3.46 ▲0.15 | 57.24 ▼4.82 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 57.35 ▲1.99 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 90.13 ▼12.41 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 44.00 ▲3.98 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_teg_twitter_api_widget_twitter_feeds |
teg_ta_twitter_feed_shortcode_layout |
widget_recent-comments |
teg_twitter_api_post_on_twitter |
widget_teg_twitter_api_widget_twitter_trends |
theysaidso_admin_options |
widget_teg_twitter_api_widget_twitter_timeline |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Twitter API Master - Twitter Widgets For WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲177 | 13.99 ▼0.41 | 5.30 ▲3.54 | 41.46 ▼1.64 |
Dashboard /wp-admin | 2,233 ▲33 | 4.86 ▼0.98 | 117.07 ▲12.59 | 45.54 ▲5.41 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.00 ▲0.01 | 39.48 ▼0.15 | 37.81 ▲0.57 |
Add New Post /wp-admin/post-new.php | 6,265 ▲4,732 | 26.30 ▲3.00 | 890.11 ▲205.13 | 59.71 ▼5.62 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.20 ▼0.04 | 106.01 ▼10.32 | 42.52 ▼5.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_teg_twitter_api_widget_twitter_trends
- teg_ta_twitter_feed_shortcode_layout
- widget_theysaidso_widget
- widget_teg_twitter_api_widget_twitter_feeds
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_teg_twitter_api_widget_twitter_timeline
- ...
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== teg-twitter-api ===
)
teg-twitter-api/teg-twitter-api.php 92% from 13 tests
This is the main PHP file of "Twitter API Master - Twitter Widgets For WordPress" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "3.0.1")
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
Success! There were no dangerous files found in this plugin13,230 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 2,393 | 613 | 9,185 |
PHP | 48 | 1,231 | 1,674 | 3,228 |
Sass | 2 | 82 | 0 | 810 |
SVG | 4 | 0 | 0 | 4 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 2 | 6.45% |
▷ Concrete classes | 29 | 93.55% |
▷ Final classes | 1 | 3.45% |
Methods | 221 | |
▷ Static methods | 58 | 26.24% |
▷ Public methods | 189 | 85.52% |
▷ Protected methods | 1 | 0.45% |
▷ Private methods | 31 | 14.03% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/twitter-logo-100x100.png | 3.53KB | 2.04KB | ▼ 42.32% |
assets/img/twitter-logo.png | 44.12KB | 16.72KB | ▼ 62.10% |