Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.10MB] [CPU: ▼43.33ms] Passed 4 tests
Server-side resources used by Google News Editors Picks Feed Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.63 | 15.67 ▼27.32 |
Dashboard /wp-admin | 2.88 ▼0.47 | 17.65 ▼45.45 |
Posts /wp-admin/edit.php | 2.97 ▼0.39 | 19.68 ▼28.50 |
Add New Post /wp-admin/post-new.php | 2.97 ▼2.92 | 21.50 ▼72.06 |
Media Library /wp-admin/upload.php | 2.88 ▼0.36 | 20.73 ▼15.11 |
Add-Ons /wp-admin/admin.php?page=bgnp_addons | 2.88 | 18.12 |
Dashboard /wp-admin/admin.php?page=bgnp_dashboard | 2.88 | 18.32 |
Settings /wp-admin/admin.php?page=bgnp_options | 2.88 | 16.97 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google News Editors Picks Feed Generator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.75 ▼0.65 | 1.55 ▼0.13 | 41.07 ▲1.04 |
Dashboard /wp-admin | 2,237 ▲46 | 4.92 ▼0.96 | 98.37 ▼14.56 | 72.72 ▲30.27 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.07 ▲0.06 | 38.02 ▲1.68 | 34.86 ▲2.91 |
Add New Post /wp-admin/post-new.php | 6,525 ▲5,011 | 27.88 ▲10.39 | 938.48 ▲258.95 | 44.02 ▼20.78 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.17 ▼0.00 | 97.39 ▼6.37 | 75.46 ▲29.83 |
Add-Ons /wp-admin/admin.php?page=bgnp_addons | 910 | 2.02 | 23.97 | 41.10 |
Dashboard /wp-admin/admin.php?page=bgnp_dashboard | 1,111 | 3.08 | 38.65 | 73.91 |
Settings /wp-admin/admin.php?page=bgnp_options | 1,411 | 3.19 | 42.03 | 64.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/google-news-editors-picks-news-feeds/includes/bgnp-functions.php+93
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bgnp_options
- > Notice in wp-content/plugins/google-news-editors-picks-news-feeds/includes/bgnp-functions.php+101
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=bgnp_options
- > Notice in wp-content/plugins/google-news-editors-picks-news-feeds/admin/pages/settings_page.php+256
Undefined variable: bgnp_WMT_path
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
The following issues need your attention
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/google-news-editors-picks-news-feeds/bgnp-main.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/google-news-editors-picks-news-feeds/admin/pages/dashboard.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/google-news-editors-picks-news-feeds/includes/bgnp-sec-feed.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/google-news-editors-picks-news-feeds/includes/bgnp-functions.php:105
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/google-news-editors-picks-news-feeds/admin/pages/settings_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/google-news-editors-picks-news-feeds/includes/bgnp-rss-feed.php:5
- > PHP Warning
Use of undefined constant BGNP_URL - assumed 'BGNP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-news-editors-picks-news-feeds/admin/pages/dashboard.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/google-news-editors-picks-news-feeds/admin/pages/add-ons-page.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bgnp_options
- > Network (severe)
wp-content/plugins/google-news-editors-picks-news-feeds/css/font-style.css?ver=2.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
google-news-editors-picks-news-feeds/bgnp-main.php 77% from 13 tests
The primary PHP file in "Google News Editors Picks Feed Generator" version 2.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 309 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-news-editors-picks-news-feeds.php" instead of "bgnp-main.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
There were no executable files found in this plugin1,931 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 253 | 708 | 1,554 |
CSS | 11 | 13 | 19 | 281 |
JavaScript | 8 | 15 | 23 | 96 |
PHP code Passed 2 tests
An overview 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.39 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 32 | 59.26% |
▷ Public methods | 53 | 98.15% |
▷ Protected methods | 1 | 1.85% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bgnp-news-icon_50x50.png | 6.52KB | 2.80KB | ▼ 57.15% |
images/bgnp-webmaster-tools_50x50.png | 6.37KB | 2.33KB | ▼ 63.33% |
images/you-tube-icon.png | 2.19KB | 1.32KB | ▼ 39.96% |
images/bgnp-rss-icon_50x50.png | 6.98KB | 2.73KB | ▼ 60.81% |
images/search-icon.png | 1.97KB | 0.79KB | ▼ 60.06% |