Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/display-latest-rss-feeds/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; LatestFeeds has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼56.64ms] Passed 4 tests
An overview of server-side resources used by Display Latest Feeds
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 6.34 ▼37.23 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.20 ▼47.21 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.44 ▼44.84 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.69 ▼97.29 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.15 ▼28.49 |
Latest Feeds /wp-admin/options-general.php?page=loq-feeds | 2.10 | 5.53 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_latestfeeds |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Display Latest Feeds
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.72 ▲0.32 | 2.04 ▼0.83 | 43.90 ▲0.44 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.07 | 93.62 ▼1.09 | 41.33 ▼2.37 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.05 | 39.28 ▲0.01 | 35.57 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.50 ▼4.57 | 628.78 ▼43.59 | 70.83 ▲14.16 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▲0.02 | 97.01 ▼5.83 | 41.45 ▼3.25 |
Latest Feeds /wp-admin/options-general.php?page=loq-feeds | 851 | 1.99 | 25.83 | 26.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/display-latest-rss-feeds/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; LatestFeeds has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- widget_latestfeeds
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=loq-feeds
- > Deprecated in wp-content/plugins/display-latest-rss-feeds/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; LatestFeeds has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=loq-feeds
- > Deprecated in wp-content/plugins/display-latest-rss-feeds/widget.php+29
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=loq-feeds
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in LatestFeeds is deprecated since version 4.3.0! Use __construct() instead.
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
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/display-latest-rss-feeds/function.php:5
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/display-latest-rss-feeds/index.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/display-latest-rss-feeds/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/display-latest-rss-feeds/index.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is the frontend output of the plugin.), #2 (This is the backend form of the plugin)
display-latest-rss-feeds/index.php 92% from 13 tests
The principal PHP file in "Display Latest Feeds" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("display-latest-rss-feeds.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin229 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 29 | 13 | 177 |
CSS | 1 | 12 | 1 | 52 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin