Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-news-feed-widget/wp-news-feed-widget.php+274
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.25ms] Passed 4 tests
A check of server-side resources used by WP News feed widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.42 ▼38.29 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.41 ▼38.79 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.22 ▼41.25 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.41 ▼82.67 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.55 ▼28.78 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_wp-news-feed-widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP News feed widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲138 | 13.65 ▼0.72 | 5.45 ▲3.37 | 37.54 ▼6.52 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼0.01 | 109.48 ▼0.99 | 40.50 ▼0.62 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▲0.01 | 41.36 ▲1.45 | 36.20 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 18.45 ▼0.05 | 622.77 ▼21.20 | 66.06 ▲15.47 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.00 | 94.86 ▼5.78 | 42.08 ▼4.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-news-feed-widget/wp-news-feed-widget.php+274
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_wp-news-feed-widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-news-feed-widget/views/widget.php
- > /wp-content/plugins/wp-news-feed-widget/views/admin.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-news-feed-widget/wp-news-feed-widget.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: pagination, news, widget
wp-news-feed-widget/wp-news-feed-widget.php Passed 13 tests
The primary PHP file in "WP News feed widget" version 1.2 is used by WordPress to initiate all plugin functionality
34 characters long description:
A news feed widget with pagination
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin425 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 43 | 78 | 223 |
CSS | 2 | 16 | 14 | 110 |
PO File | 1 | 21 | 23 | 56 |
JavaScript | 2 | 3 | 0 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin