Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ai-twitter-feeds/ai-twitter-feeds.php+401
Methods with the same name as their class will not be constructors in a future version of PHP; AI_Twitter_Widget has a deprecated constructor
Server metrics [RAM: ▼1.75MB] [CPU: ▼55.80ms] Passed 4 tests
Analyzing server-side resources used by AI Twitter Feeds (Twitter widget & shortcode)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.23 | 5.95 ▼38.74 |
Dashboard /wp-admin | 2.25 ▼1.05 | 6.41 ▼46.41 |
Posts /wp-admin/edit.php | 2.25 ▼1.10 | 6.06 ▼42.98 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.63 | 7.12 ▼95.07 |
Media Library /wp-admin/upload.php | 2.25 ▼0.97 | 8.09 ▼28.96 |
AI Twitter Settings /wp-admin/options-general.php?page=ai-plugin | 2.25 | 6.07 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_ai_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by AI Twitter Feeds (Twitter widget & shortcode)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲193 | 13.92 ▼0.69 | 8.84 ▲7.33 | 42.91 ▲1.01 |
Dashboard /wp-admin | 2,245 ▲68 | 5.83 ▲0.17 | 92.72 ▲0.56 | 41.12 ▲3.26 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.31 ▲0.29 | 35.70 ▼2.44 | 33.61 ▼4.21 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.26 ▲0.36 | 682.57 ▲2.53 | 38.88 ▼14.79 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.35 ▲0.15 | 89.20 ▼11.06 | 42.82 ▼3.09 |
AI Twitter Settings /wp-admin/options-general.php?page=ai-plugin | 1,013 | 1.94 | 26.17 | 27.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/ai-twitter-feeds/ai-twitter-feeds.php+401
Methods with the same name as their class will not be constructors in a future version of PHP; AI_Twitter_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_ai_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ai-plugin
- > Deprecated in wp-content/plugins/ai-twitter-feeds/ai-twitter-feeds.php+401
Methods with the same name as their class will not be constructors in a future version of PHP; AI_Twitter_Widget has a deprecated constructor
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-twitter-feeds/ai-twitter-feeds.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Widget Setting example in admin.), #2 (Widget view on front side.), #3 (Use Shortcode OR PHP code in Post/Template.), #4 (Settings Screen from WordPress Admin.), #5 (WordPress Admin Tweets Display In Dashboard.)
ai-twitter-feeds/ai-twitter-feeds.php 85% from 13 tests
The primary PHP file in "AI Twitter Feeds (Twitter widget & shortcode)" version 2.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 360 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin1,337 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 231 | 354 | 1,134 |
CSS | 1 | 0 | 22 | 178 |
JavaScript | 2 | 5 | 2 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 10 | 12.50% |
▷ Public methods | 69 | 86.25% |
▷ Protected methods | 2 | 2.50% |
▷ Private methods | 9 | 11.25% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.47MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 84.46KB | 23.50KB | ▼ 72.18% |
screenshot-4.png | 173.62KB | 53.03KB | ▼ 69.45% |
screenshot-1.png | 13.33KB | 6.26KB | ▼ 53.01% |
screenshot-3.png | 128.13KB | 46.99KB | ▼ 63.33% |
screenshot-2.png | 85.99KB | 26.27KB | ▼ 69.45% |