84% google-news-keywords-from-tags

Code Review | Google News Keywords from Tags

WordPress plugin Google News Keywords from Tags scored84%from 54 tests.

About plugin

  • Plugin page: google-news-keywo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2012
  • Latest release: Jun 23, 2014
  • Number of updates: 8
  • Update frequency: every 78.3 days
  • Top authors: slobodanmanic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,757 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.64ms] Passed 4 tests

This is a short check of server-side resources used by Google News Keywords from Tags
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.38 ▼0.52
Dashboard /wp-admin3.31 ▲0.0154.75 ▲3.76
Posts /wp-admin/edit.php3.36 ▲0.0053.67 ▲1.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.85 ▼6.23
Media Library /wp-admin/upload.php3.23 ▲0.0037.31 ▼1.54

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Google News Keywords from Tags
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.42 ▲0.071.95 ▲0.0450.90 ▲7.81
Dashboard /wp-admin2,192 ▲215.55 ▼0.1289.93 ▼1.7938.44 ▼7.08
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0436.63 ▼1.6033.57 ▼3.64
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▼0.37660.35 ▼23.9155.04 ▲2.33
Media Library /wp-admin/upload.php1,397 ▼04.25 ▲0.0199.04 ▼9.4841.82 ▼4.97

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
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-news-keywords-from-tags/google-news-keywords.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: tags, keywords, news, google news, meta

google-news-keywords-from-tags/google-news-keywords.php 92% from 13 tests

The primary PHP file in "Google News Keywords from Tags" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-news-keywords-from-tags.php" instead of "google-news-keywords.php")

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
Everything looks great! No dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141115

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin