84% add-meta-tag-keywords

Code Review | Add Meta Tag Keywords

WordPress plugin Add Meta Tag Keywords scored84%from 54 tests.

About plugin

  • Plugin page: add-meta-tag-keyw...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2022
  • Latest release: Feb 23, 2023
  • Number of updates: 9
  • Update frequency: every 35.0 days
  • Top authors: epiphanyit321 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,694 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.13ms] Passed 4 tests

An overview of server-side resources used by Add Meta Tag Keywords
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.84 ▼8.48
Dashboard /wp-admin3.31 ▲0.0144.27 ▼5.90
Posts /wp-admin/edit.php3.36 ▲0.0146.83 ▼2.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.11 ▼7.96
Media Library /wp-admin/upload.php3.23 ▲0.0133.36 ▲1.81

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Add Meta Tag Keywords
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.26 ▼1.134.34 ▲2.2341.17 ▼3.74
Dashboard /wp-admin2,214 ▲435.90 ▲0.03103.07 ▲3.7039.34 ▼16.29
Posts /wp-admin/edit.php2,100 ▲142.06 ▲0.0439.16 ▲4.3334.21 ▼3.82
Add New Post /wp-admin/post-new.php6,484 ▲4,95023.20 ▼0.02855.98 ▲187.7761.37 ▲7.46
Media Library /wp-admin/upload.php1,399 ▲84.24 ▲0.0296.43 ▼2.3141.77 ▼1.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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
  • 1× 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/add-meta-tag-keywords/add-meta-tags-keywords.php:39

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: meta tag, seo improvement, metadata, seo, meta keywords

add-meta-tag-keywords/add-meta-tags-keywords.php 92% from 13 tests

The primary PHP file in "Add Meta Tag Keywords" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("add-meta-tag-keywords.php" instead of "add-meta-tags-keywords.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,163 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript26429861
CSS2265170
PHP24711132

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.51MB with 0.37MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Screenshot-2.png449.45KB146.84KB▼ 67.33%
assets/Screenshot-1.png75.94KB18.89KB▼ 75.13%