78% wp-keyword-suggest

Code Review | WP Keyword Suggest

WordPress plugin WP Keyword Suggest scored78%from 54 tests.

About plugin

  • Plugin page: wp-keyword-suggest
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Sep 2, 2013
  • Latest release: Mar 23, 2015
  • Number of updates: 23
  • Update frequency: every 24.7 days
  • Top authors: nicolasmarin (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /35,193 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼10.78ms] Passed 4 tests

This is a short check of server-side resources used by WP Keyword Suggest
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.39 ▲1.63
Dashboard /wp-admin3.34 ▲0.0349.38 ▼1.33
Posts /wp-admin/edit.php3.39 ▲0.0348.04 ▼1.14
Add New Post /wp-admin/post-new.php5.17 ▼0.7266.57 ▼37.42
Media Library /wp-admin/upload.php3.26 ▲0.0331.94 ▼3.21
WP Keyword Suggest /wp-admin/options-general.php?page=wp-keyword-suggest-options3.2331.62

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
wpks_intense
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Keyword Suggest
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.111.91 ▲0.2042.26 ▼2.18
Dashboard /wp-admin2,199 ▲225.49 ▼0.1892.26 ▼5.3641.79 ▼2.99
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0334.36 ▲1.0237.58 ▲0.94
Add New Post /wp-admin/post-new.php6,249 ▲4,72326.25 ▲3.34925.22 ▲203.0157.82 ▲4.80
Media Library /wp-admin/upload.php1,401 ▲14.27 ▲0.06104.61 ▲0.4245.40 ▲5.63
WP Keyword Suggest /wp-admin/options-general.php?page=wp-keyword-suggest-options8232.0225.3628.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-keyword-suggest/inc/wpks-admin.php
    • > /wp-content/plugins/wp-keyword-suggest/wp-keyword-suggest.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-keyword-suggest/inc/meta-box-wp-keyword-suggest.php:2

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Enter a keyword for suggest) image not found
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

wp-keyword-suggest/wp-keyword-suggest.php Passed 13 tests

"WP Keyword Suggest" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
115 characters long description:
This SEO plugin offers keyword suggestions, taken from autocomplete google, yahoo, bing... up to 250 keywords ideas

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 detected677 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21415403
PHP43215178
CSS281652
PO File1315544

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.50
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods325.00%
▷ Public methods12100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected