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
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
Server metrics [RAM: ▼1.71MB] [CPU: ▼56.38ms] Passed 4 tests
An overview of server-side resources used by The Guardian News Feed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 6.28 ▼38.47 |
Dashboard /wp-admin | 2.30 ▼1.01 | 7.12 ▼48.56 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 7.29 ▼40.70 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 7.55 ▼97.79 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 7.60 ▼30.74 |
Guardian News Feed /wp-admin/options-general.php?page=the-guardian-news-feed/gu-open-platform-settings.php | 2.30 | 6.29 |
Guardian News Feed /wp-admin/edit.php?page=the-guardian-news-feed/gu-open-platform-article-importer.php | 2.30 | 8.95 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for The Guardian News Feed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.74 ▲0.15 | 2.04 ▼0.18 | 44.93 ▲0.40 |
Dashboard /wp-admin | 2,214 ▲26 | 5.08 ▼0.82 | 100.24 ▼17.20 | 45.56 ▼1.08 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.97 ▼0.02 | 35.71 ▼2.07 | 34.66 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.25 ▲0.47 | 685.45 ▲48.11 | 61.97 ▲9.57 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.31 ▲0.08 | 101.00 ▼3.50 | 42.30 ▼0.68 |
Guardian News Feed /wp-admin/options-general.php?page=the-guardian-news-feed/gu-open-platform-settings.php | 912 | 2.18 | 25.58 | 29.07 |
Guardian News Feed /wp-admin/edit.php?page=the-guardian-news-feed/gu-open-platform-article-importer.php | 793 | 2.02 | 26.26 | 29.53 |
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
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?page=the-guardian-news-feed/gu-open-platform-article-importer.php
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?page=the-guardian-news-feed/gu-open-platform-article-importer.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/edit.php?page=the-guardian-news-feed/gu-open-platform-article-importer.php
- > Notice in wp-content/plugins/the-guardian-news-feed/api/gu-open-platform-api.php+103
Undefined index: response
- > GET request to /wp-admin/edit.php?page=the-guardian-news-feed/gu-open-platform-article-importer.php
- > Notice in wp-content/plugins/the-guardian-news-feed/api/gu-open-platform-api.php+103
Trying to access array offset on value of type null
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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/the-guardian-news-feed/gu-open-platform-article-importer.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/the-guardian-news-feed/gu-open-platform-article-importer.php:69
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Donate link: Invalid URI ("")
the-guardian-news-feed/gu-open-platform-settings.php 92% from 13 tests
"The Guardian News Feed" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-guardian-news-feed.php" instead of "gu-open-platform-settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,303 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 363 | 658 | 1,303 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
There are no PNG files in this plugin