84% wp-dynamic-keywords-injector

Code Review | WP Dynamic Keywords Injector

WordPress plugin WP Dynamic Keywords Injector scored 84% from 54 tests.

About plugin

  • Plugin page: wp-dynamic-keywor...
  • Plugin version: 2.3.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Jul 26, 2017
  • Latest release: Aug 25, 2023
  • Number of updates: 80
  • Update frequency: every 27.8 days
  • Top authors: mughees.hafeez (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 21,167 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.51ms] Passed 4 tests

This is a short check of server-side resources used by WP Dynamic Keywords Injector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.61 ▲1.33
Dashboard /wp-admin3.38 ▲0.0750.20 ▲2.51
Posts /wp-admin/edit.php3.43 ▲0.0747.32 ▲0.89
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.25 ▼7.41
Media Library /wp-admin/upload.php3.30 ▲0.0735.82 ▼0.85

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Dynamic Keywords Injector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10914.77 ▲0.361.95 ▲0.0446.48 ▲1.10
Dashboard /wp-admin2,222 ▲315.79 ▲0.83116.09 ▲8.3742.77 ▲1.41
Posts /wp-admin/edit.php2,105 ▲132.02 ▼0.0134.09 ▼3.4434.89 ▲0.03
Add New Post /wp-admin/post-new.php1,558 ▲2518.22 ▼4.87626.12 ▼5.1652.90 ▼11.03
Media Library /wp-admin/upload.php1,407 ▲164.33 ▲0.1494.39 ▼6.0639.88 ▼4.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wp-dynamic-keywords-injector/sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-dynamic-keywords-injector/settings.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dynamic-keywords-injector/wp-dynamic-keywords-injector.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-dynamic-keywords-injector/wp-dynamic-keywords-injector.php Passed 13 tests

The primary PHP file in "WP Dynamic Keywords Injector" version 2.3.18 is used by WordPress to initiate all plugin functionality
90 characters long description:
WP Dynamic Keywords Injector inserts dynamic keywords, spintax, page title and meta title.

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 plugin2,142 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS40181,332
PHP39292805
JavaScript30105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants0
▷ Global constants00.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
7 PNG files occupy 0.44MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/banner-new.png153.91KB65.25KB▼ 57.60%
images/banner-three.png12.96KB5.88KB▼ 54.61%
images/banner-new-one.png187.42KB60.80KB▼ 67.56%
images/close.png25.60KB7.35KB▼ 71.30%
images/banner-one.png29.81KB11.18KB▼ 62.48%