79% add-meta-tag-for-wordpress

Code Review | Add Meta Tag For WordPress

WordPress plugin Add Meta Tag For WordPress scored79%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: 6.3.1
  • 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

100+ active /3,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.53MB] [CPU: ▼13.16ms] Passed 4 tests

This is a short check of server-side resources used by Add Meta Tag For WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.46 ▼2.11
Dashboard /wp-admin3.45 ▲0.1551.93 ▲2.27
Posts /wp-admin/edit.php3.57 ▲0.2149.36 ▲2.56
Add New Post /wp-admin/post-new.php3.30 ▼2.5837.46 ▼55.35
Media Library /wp-admin/upload.php3.38 ▲0.1541.13 ▲3.43
Meta Tag /wp-admin/options-general.php?page=add-meta-tag-for-wordpress3.3536.56

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Meta Tag For WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16213.47 ▼0.888.09 ▲6.2838.55 ▼2.10
Dashboard /wp-admin2,215 ▲355.62 ▼0.0790.83 ▼1.1339.48 ▲0.25
Posts /wp-admin/edit.php2,132 ▲322.03 ▲0.0441.73 ▲2.4135.28 ▼1.31
Add New Post /wp-admin/post-new.php1,542 ▲1623.13 ▲0.21666.18 ▲46.9751.50 ▲4.76
Media Library /wp-admin/upload.php1,426 ▲264.26 ▲0.10104.11 ▼5.8646.63 ▲1.87
Meta Tag /wp-admin/options-general.php?page=add-meta-tag-for-wordpress9171.6829.1826.49

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/add-meta-tag-for-wordpress/public/partials/add-meta-tag-for-wordpress-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: schemaorg, meta tags, seo, org, metadata...

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

The primary PHP file in "Add Meta Tag For WordPress" version 1.0.1 is used by WordPress to initiate all plugin functionality
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 | There should be no dangerous file extensions present in any WordPress plugin
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
No cyclomatic complexity issues were detected for this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected