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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.35ms] Passed 4 tests
Analyzing server-side resources used by Social Feeds
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 40.03 ▼0.82 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.03 ▲1.89 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 43.20 ▼7.22 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 79.12 ▼20.95 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.17 ▼0.39 |
Server storage [IO: ▲1.72MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_ct_social_feed |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Social Feeds: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.78 ▲0.15 | 1.69 ▼0.12 | 44.27 ▼2.84 |
Dashboard /wp-admin | 2,208 ▲20 | 4.83 ▼0.02 | 96.72 ▼8.33 | 38.60 ▼8.31 |
Posts /wp-admin/edit.php | 2,088 ▼1 | 1.98 ▼0.02 | 33.82 ▼2.27 | 34.73 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 18.23 ▼4.94 | 608.97 ▲2.99 | 50.99 ▲0.59 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.23 ▲0.05 | 95.69 ▼8.54 | 41.79 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_ct_social_feed
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cactus-social-feeds/admin/html/twitter_widget_fields.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cactus-social-feeds/cactus-social-feed.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in cactus-social-feeds/assets to your readme.txt
cactus-social-feeds/cactus-social-feed.php 92% from 13 tests
Analyzing the main PHP file in "Social Feeds" version 1.0.2
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cactus-social-feeds.php" instead of "cactus-social-feed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,355 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 2,880 |
PHP | 4 | 327 | 39 | 1,097 |
CSS | 3 | 4 | 5 | 378 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
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 | 8.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.27 |
▷ 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 | 83 | |
▷ Static methods | 10 | 12.05% |
▷ Public methods | 72 | 86.75% |
▷ Protected methods | 2 | 2.41% |
▷ Private methods | 9 | 10.84% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin