78% seo-keywords

Code Review | SEO Keywords

WordPress plugin SEO Keywords scored78%from 54 tests.

About plugin

  • Plugin page: seo-keywords
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2022
  • Latest release: Feb 13, 2023
  • Number of updates: 8
  • Update frequency: every 52.0 days
  • Top authors: seomantis (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /1,746 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.25ms] Passed 4 tests

A check of server-side resources used by SEO Keywords
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.13 ▼1.66
Dashboard /wp-admin3.34 ▼0.0150.94 ▼13.20
Posts /wp-admin/edit.php3.39 ▲0.0352.11 ▲4.27
Add New Post /wp-admin/post-new.php5.94 ▲0.0685.90 ▼8.16
Media Library /wp-admin/upload.php3.26 ▲0.0340.66 ▲2.02
Keywords /wp-admin/admin.php?page=seo-keywords3.2733.69
SEO Plugins /wp-admin/admin.php?page=wp-seo-plugins-login3.2934.41

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

SEO Keywords: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲17813.59 ▼0.777.47 ▲5.3737.03 ▼5.54
Dashboard /wp-admin2,233 ▲565.75 ▲0.0590.24 ▲5.5732.34 ▼8.88
Posts /wp-admin/edit.php2,141 ▲412.17 ▲0.1840.13 ▲4.7030.72 ▼4.57
Add New Post /wp-admin/post-new.php6,447 ▲4,92128.01 ▲4.41925.02 ▲250.2951.16 ▼14.83
Media Library /wp-admin/upload.php1,510 ▲1104.49 ▲0.29103.13 ▲7.0043.36 ▲0.72
Keywords /wp-admin/admin.php?page=seo-keywords8771.8325.9928.50
SEO Plugins /wp-admin/admin.php?page=wp-seo-plugins-login9831.8224.8625.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-display.php
    • > /wp-content/plugins/seo-keywords/public/partials/seo-keywords-public-display.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant SEO_KEYWORDS_SITE_URL - assumed 'SEO_KEYWORDS_SITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-metabox.php on line 167
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-metabox.php:168
    • > PHP Warning
      Use of undefined constant SEO_KEYWORDS_SERVER_REQUEST_URI - assumed 'SEO_KEYWORDS_SERVER_REQUEST_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-metabox.php on line 167
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-settings.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-keywords/admin/partials/seo-keywords-admin-custom-settings.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

seo-keywords/seo-keywords.php Passed 13 tests

"SEO Keywords" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
124 characters long description:
SEO Keywords is a powerful plugin that helps you add keywords in your wordpress posts. Automate keywords building with ease!

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
Everything looks great! No dangerous files found in this plugin1,185 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP15182542898
JavaScript33466191
CSS301496

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.43
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3485.00%
▷ Protected methods00.00%
▷ Private methods615.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected