Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼7.09ms] Passed 4 tests
Server-side resources used by Cache Tweets Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 38.79 ▲0.67 |
Dashboard /wp-admin | 3.56 ▲0.21 | 48.80 ▼23.82 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 53.17 ▲4.94 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 88.76 ▼8.30 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.27 ▲3.08 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_visearch_tweets_widget |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Cache Tweets Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.34 ▼0.22 | 1.56 ▼0.04 | 37.51 ▼7.17 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▲0.08 | 84.42 ▼9.69 | 42.43 ▲1.63 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.11 | 34.59 ▼1.46 | 35.89 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.05 ▼0.06 | 689.16 ▲76.70 | 55.71 ▼1.70 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.17 ▼0.03 | 111.95 ▲6.57 | 46.49 ▼0.97 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cache-tweets-widget/widget.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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.(png)), #2 (screenshot-2.(png))
cache-tweets-widget/widget.php 85% from 13 tests
The main file in "Cache Tweets Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 141 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cache-tweets-widget.php" instead of "widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected895 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 187 | 344 | 875 |
CSS | 1 | 2 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 83 | |
▷ Static methods | 10 | 12.05% |
▷ Public methods | 72 | 86.75% |
▷ Protected methods | 2 | 2.41% |
▷ Private methods | 9 | 10.84% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 51.65KB | 17.98KB | ▼ 65.18% |
screenshot-2.png | 40.09KB | 12.24KB | ▼ 69.48% |