10% head-meta-date

Code Review | Head Meta Date

WordPress plugin Head Meta Date scored10%from 54 tests.

About plugin

  • Plugin page: head-meta-date
  • Plugin version: 20130412...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Apr 11, 2013
  • Latest release: Apr 12, 2013
  • Number of updates: 11
  • Update frequency: every 2.4 days
  • Top authors: satourne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,473 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/head-meta-date/head-meta-date.php+143
    Trying to access array offset on value of type bool

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

Analyzing server-side resources used by Head Meta Date
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0726.85 ▼13.39
Dashboard /wp-admin3.32 ▲0.0145.00 ▼6.76
Posts /wp-admin/edit.php3.37 ▲0.0149.55 ▲1.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.60 ▼7.88
Media Library /wp-admin/upload.php3.24 ▲0.0132.08 ▼3.08
Head Meta Date /wp-admin/options-general.php?page=head-meta-date/head-meta-date.php3.1829.20

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

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

Browser metrics Passed 4 tests

Head Meta Date: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.30 ▼1.081.61 ▼0.1337.64 ▼6.63
Dashboard /wp-admin2,210 ▲194.83 ▼0.03110.56 ▲10.4637.17 ▼12.67
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0639.30 ▼3.2834.46 ▼1.18
Add New Post /wp-admin/post-new.php1,524 ▼423.46 ▲5.09623.50 ▲12.7854.61 ▼7.95
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0392.13 ▼0.5743.28 ▼0.82
Head Meta Date /wp-admin/options-general.php?page=head-meta-date/head-meta-date.php1,1181.7623.7937.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • hmdate_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=head-meta-date/head-meta-date.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=head-meta-date/head-meta-date.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=head-meta-date/head-meta-date.php
    • > Notice in wp-content/plugins/head-meta-date/head-meta-date.php+85
    Undefined variable: post_date

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/head-meta-date/head-meta-date.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Invalid url: "Free"
Please take inspiration from this readme.txt

head-meta-date/head-meta-date.php 92% from 13 tests

The main PHP script in "Head Meta Date" version 20130412... is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20130412...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin355 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13849355

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
hmd-logo.png6.59KB4.31KB▼ 34.54%