89% add-meta-tag-for-wordpress

Code Review | Add Meta Tag For WordPress

WordPress plugin Add Meta Tag For WordPress scored 89% from 54 tests.

About plugin

  • Plugin page: add-meta-tag-for-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 5.9.2
  • First release: Aug 10, 2017
  • Latest release: Nov 17, 2017
  • Number of updates: 5
  • Update frequency: every 19.8 days
  • Top authors: wpdesigncoding (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 3,164 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.78MB] [CPU: ▼310.34ms] Passed 4 tests

An overview of server-side resources used by Add Meta Tag For WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2255.70 ▲3.69
Dashboard /wp-admin3.56 ▲0.1633.10 ▼2.01
Posts /wp-admin/edit.php3.79 ▲0.1538.02 ▲1.71
Add New Post /wp-admin/post-new.php3.37 ▼3.6028.15 ▼1,240.64
Media Library /wp-admin/upload.php3.44 ▲0.1523.13 ▼0.42
Meta Tag /wp-admin/options-general.php?page=add-meta-tag-for-wordpress3.4124.78

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Meta Tag For WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,896 ▲14216.80 ▲1.149.15 ▲3.082.19 ▼0.58
Dashboard /wp-admin2,916 ▲556.23 ▼0.09117.08 ▼18.87156.49 ▼2.22
Posts /wp-admin/edit.php2,715 ▲243.25 ▲0.0164.61 ▲2.74142.52 ▲3.55
Add New Post /wp-admin/post-new.php1,682 ▲2116.87 ▲0.82431.19 ▲18.65156.60 ▼5.18
Media Library /wp-admin/upload.php1,719 ▲185.57 ▲0.03137.82 ▲0.48186.01 ▲0.51
Meta Tag /wp-admin/options-general.php?page=add-meta-tag-for-wordpress1,1602.6254.69112.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/add-meta-tag-for-wordpress/public/partials/add-meta-tag-for-wordpress-public-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-meta-tag-for-wordpress/admin/partials/add-meta-tag-for-wordpress-admin-display.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-meta-tag-for-wordpress/admin/partials/class-add-meta-tag-for-wordpress-general-setting.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: org, keywords, metabox, schemaorg, meta...

add-meta-tag-for-wordpress/add-meta-tag-for-wordpress.php Passed 13 tests

Analyzing the main PHP file in "Add Meta Tag For WordPress" version 1.0.1
117 characters long description:
this plugin that you can add metadata your web site for more efficient indexing and easier sharing of your content. \

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin935 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14157330752
JavaScript32718183
CSS2080

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.40
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods38
▷ Static methods1231.58%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
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
There were not PNG files found in your plugin