83% codedeyo-google-trends-for-bloggers

Code Review | Google Trends for WP

WordPress plugin Google Trends for WP scored83%from 54 tests.

About plugin

  • Plugin page: codedeyo-google-t...
  • Plugin version: 3.2.4
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 4, 2019
  • Latest release: Nov 17, 2023
  • Number of updates: 27
  • Update frequency: every 60.3 days
  • Top authors: biggidroid (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /2,278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.32ms] Passed 4 tests

An overview of server-side resources used by Google Trends for WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.94 ▲2.64
Dashboard /wp-admin3.34 ▼0.0043.85 ▼15.03
Posts /wp-admin/edit.php3.40 ▲0.0448.42 ▲3.39
Add New Post /wp-admin/post-new.php5.94 ▲0.0685.78 ▲3.71
Media Library /wp-admin/upload.php3.28 ▲0.0536.28 ▲5.29

Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Google Trends for WP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲11916.27 ▲1.931.86 ▲0.1538.36 ▼1.75
Dashboard /wp-admin2,249 ▲687.57 ▲1.86210.99 ▲98.6040.65 ▼3.17
Posts /wp-admin/edit.php2,163 ▲606.26 ▲4.3357.68 ▲16.0537.47 ▲2.48
Add New Post /wp-admin/post-new.php7,447 ▲5,91823.94 ▲0.931,078.40 ▲469.06110.32 ▲54.41
Media Library /wp-admin/upload.php1,467 ▲708.10 ▲3.94135.93 ▲36.3143.12 ▲0.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/codedeyo-google-trends-for-bloggers/includes/google-trends.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: You can take inspiration from this readme.txt

codedeyo-google-trends-for-bloggers/codedeyo-google-trends-for-bloggers.php 92% from 13 tests

The main file in "Google Trends for WP" v. 3.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,607 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2962861,279
CSS238140
PHP41771113
Markdown152075

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/us.png4.54KB4.41KB▼ 2.80%
img/ng.png6.83KB1.48KB▼ 78.38%