84% metadata-seo

Code Review | Metadata SEO

WordPress plugin Metadata SEO scored84%from 54 tests.

About plugin

  • Plugin page: metadata-seo
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.01
  • WordPress version: 6.3.1
  • First release: Jan 8, 2015
  • Latest release: Jan 22, 2015
  • Number of updates: 20
  • Update frequency: every 0.9 days
  • Top authors: hpinfosys (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,867 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.51MB] [CPU: ▼17.99ms] Passed 4 tests

Server-side resources used by Metadata SEO
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1636.40 ▼7.83
Dashboard /wp-admin3.49 ▲0.1845.60 ▼0.32
Posts /wp-admin/edit.php3.60 ▲0.2448.79 ▲2.13
Add New Post /wp-admin/post-new.php3.34 ▼2.5531.33 ▼65.95
Media Library /wp-admin/upload.php3.41 ▲0.1835.73 ▲4.00
Metadata SEO /wp-admin/options-general.php?page=metadata_seo_global3.3829.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 15 new options
New WordPress options
db_upgraded
widget_metadata_seo_widget
metadata_seo_global_keywords
metadata_seo_fb_appid
metadata_seo_fb_description
can_compress_scripts
metadata_seo_fb_admins
metadata_seo_global_description
metadata_seo_fb_type
metadata_seo_fb_image
...

Browser metrics Passed 4 tests

A check of browser resources used by Metadata SEO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.48 ▲0.181.75 ▲0.0140.74 ▼3.04
Dashboard /wp-admin2,213 ▲284.85 ▼0.96110.68 ▲7.4941.35 ▼2.38
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0639.20 ▼1.8833.79 ▼2.31
Add New Post /wp-admin/post-new.php6,495 ▲4,98123.41 ▲5.77923.92 ▲312.9281.01 ▲27.12
Media Library /wp-admin/upload.php1,395 ▲44.18 ▼0.0098.09 ▼1.7542.19 ▼1.20
Metadata SEO /wp-admin/options-general.php?page=metadata_seo_global1,0532.0925.8037.23

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 15 options in the database
    • metadata_seo_fb_title
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • metadata_seo_fb_image
    • metadata_seo_fb_admins
    • metadata_seo_global_keywords
    • theysaidso_admin_options
    • widget_metadata_seo_widget
    • metadata_seo_fb_type
    • ...

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metadata-seo/metadata-seo-header.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metadata-seo/metadata-seo-widget.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/metadata-seo/metadata-seo-options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/metadata-seo/metadata-seo.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metadata-seo/metadata-seo-post.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metadata-seo/metadata-seo-opengraph-post.php:66

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

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
6 plugin tags: metadata, seo, metadata seo, seo keywords, open graph...

metadata-seo/metadata-seo.php Passed 13 tests

"Metadata SEO" version 2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
126 characters long description:
Add Keywords, Description to Global / Individual Pages/ Individual Post for SEO, working with OPEN GRAPH Metadata for Facebook

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
Good job! No executable or dangerous file extensions detected678 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP610968678

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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
No PNG files were detected