10% google-trends-und-charts

Code Review | Google Trends & Charts

WordPress plugin Google Trends & Charts scored10%from 54 tests.

About plugin

  • Plugin page: google-trends-und...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.8.0
  • WordPress version: 6.3.1
  • First release: Dec 19, 2014
  • Latest release: Jul 25, 2021
  • Number of updates: 6
  • Update frequency: every 402.2 days
  • Top authors: baynado (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,519 total downloads

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
  • This plugin did not install gracefully
    • > 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.93MB] [CPU: ▼52.87ms] Passed 4 tests

A check of server-side resources used by Google Trends & Charts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.97 ▼31.34
Dashboard /wp-admin2.09 ▼1.257.50 ▼48.03
Posts /wp-admin/edit.php2.09 ▼1.265.86 ▼42.63
Add New Post /wp-admin/post-new.php2.09 ▼3.805.53 ▼89.46
Media Library /wp-admin/upload.php2.09 ▼1.146.21 ▼28.04
Google & Trends Charts /wp-admin/options-general.php?page=google-trends-charts2.095.76

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Google Trends & Charts: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,002 ▲25619.70 ▲5.291.50 ▼0.2039.65 ▼0.64
Dashboard /wp-admin2,409 ▲23210.45 ▲4.80190.09 ▲102.9043.83 ▲6.71
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0433.96 ▼6.7534.26 ▼0.41
Add New Post /wp-admin/post-new.php1,529 ▼623.43 ▲5.54602.39 ▼14.1373.30 ▲9.75
Media Library /wp-admin/upload.php1,407 ▲104.20 ▼0.03100.77 ▼3.0041.15 ▼2.51
Google & Trends Charts /wp-admin/options-general.php?page=google-trends-charts9872.1726.5834.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need 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_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=google-trends-charts
    • > 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.

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/google-trends-und-charts/google-trends-charts.php:63

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=google-trends-charts
    • > Network (severe)
    wp-content/plugins/simple-google-news-de/images/internet-pr-beratung-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: google trends, google, charts, shortcode

google-trends-und-charts/google-trends-charts.php 85% from 13 tests

This is the main PHP file of "Google Trends & Charts" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("google-trends-und-charts.php" instead of "google-trends-charts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin276 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12632238
CSS110038

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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