Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/sb-insights-rss-widget/insights-samsung-feed.widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; InsightsSamsungFeedWidget has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼187.51ms] Passed 4 tests
A check of server-side resources used by SB Insights RSS Feed Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼0.93 | 5.81 ▼15.56 |
Dashboard /wp-admin | 1.81 ▼1.24 | 5.23 ▼41.62 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 5.26 ▼32.83 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.96 ▼646.69 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 5.21 ▼28.88 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_insightssamsungfeedwidget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SB Insights RSS Feed Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲108 | 16.38 ▲0.47 | 7.74 ▼5.25 | 49.22 ▲1.98 |
Dashboard /wp-admin | 2,973 ▲39 | 5.89 ▼0.18 | 132.62 ▼10.31 | 112.97 ▲1.09 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.00 | 66.64 ▲4.46 | 89.93 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,672 ▲172 | 19.01 ▲0.09 | 379.13 ▲26.70 | 118.21 ▲5.63 |
Media Library /wp-admin/upload.php | 1,807 ▲3 | 5.01 ▼0.05 | 148.02 ▲2.86 | 122.68 ▲2.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/sb-insights-rss-widget/insights-samsung-feed.widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; InsightsSamsungFeedWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 1 option
- widget_insightssamsungfeedwidget
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sb-insights-rss-widget/views/insights-samsung-feed.widget.view.php:5
- > PHP Notice
Undefined variable: category_url in wp-content/plugins/sb-insights-rss-widget/views/insights-samsung-feed.widget.view.php on line 5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sb-insights-rss-widget/views/insights-samsung-feed.widget.form.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sb-insights-rss-widget/insights-samsung-feed.widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sb-insights-rss-widget/insights-samsung-feed.widget.php:3
- > 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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: support, services, mobile, security, samsung...
sb-insights-rss-widget/insights-samsung-feed.php 92% from 13 tests
"SB Insights RSS Feed Plugin" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sb-insights-rss-widget.php" instead of "insights-samsung-feed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected213 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 46 | 29 | 145 |
CSS | 1 | 15 | 1 | 68 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/samsung-logo.png | 7.51KB | 5.49KB | ▼ 26.93% |