83% g-meta-keywords

Code Review | G Meta Keywords

WordPress plugin G Meta Keywords scored83%from 54 tests.

About plugin

  • Plugin page: g-meta-keywords
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2018
  • Latest release: Jun 19, 2019
  • Number of updates: 19
  • Update frequency: every 18.1 days
  • Top authors: sinanyorulmaz (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

10,000+ active /48,570 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.02MB] [CPU: ▼5.73ms] Passed 4 tests

A check of server-side resources used by G Meta Keywords
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.44 ▲1.28
Dashboard /wp-admin3.34 ▼0.0154.50 ▼11.33
Posts /wp-admin/edit.php3.39 ▲0.0351.72 ▲2.05
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.42 ▼9.46
Media Library /wp-admin/upload.php3.26 ▲0.0337.52 ▼3.39

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
post_type
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for G Meta Keywords
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3414.35 ▼0.271.66 ▼0.2343.51 ▲1.25
Dashboard /wp-admin2,211 ▲315.59 ▼0.0985.27 ▼5.1138.73 ▼4.63
Posts /wp-admin/edit.php2,113 ▲102.00 ▼0.0233.27 ▼4.8735.45 ▼3.06
Add New Post /wp-admin/post-new.php6,239 ▲4,71325.66 ▲2.68930.12 ▲274.1362.65 ▲10.64
Media Library /wp-admin/upload.php1,413 ▲104.24 ▲0.12103.26 ▲0.6447.08 ▲5.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • post_type
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-meta-keywords/gmk_functions.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-meta-keywords/gmk_options.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-meta-keywords/gmk_functions.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-meta-keywords/gmk_category_functions.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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

g-meta-keywords/index.php 85% from 13 tests

The principal PHP file in "G Meta Keywords" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 224 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("g-meta-keywords.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin488 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1670334
PHP42811154

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin