89% head-meta-data

Code Review | Head Meta Data

WordPress plugin Head Meta Data scored89%from 54 tests.

About plugin

  • Plugin page: head-meta-data
  • Plugin version: 20231026...
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 14, 2012
  • Latest release: Oct 27, 2023
  • Number of updates: 53
  • Update frequency: every 75.5 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

20,000+ active /350,032 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.61ms] Passed 4 tests

A check of server-side resources used by Head Meta Data
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1636.98 ▼2.36
Dashboard /wp-admin3.45 ▲0.1545.86 ▼4.07
Posts /wp-admin/edit.php3.57 ▲0.2145.26 ▼1.57
Add New Post /wp-admin/post-new.php6.04 ▲0.1482.61 ▼6.43
Media Library /wp-admin/upload.php3.38 ▲0.1439.59 ▲6.10
Head Meta Data /wp-admin/options-general.php?page=head-meta-data3.3732.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
hmd_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Head Meta Data: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3914.17 ▼0.181.71 ▼0.1943.37 ▲5.38
Dashboard /wp-admin2,199 ▲255.56 ▼0.0080.21 ▼18.4137.43 ▼7.25
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0033.00 ▼4.9433.55 ▼1.59
Add New Post /wp-admin/post-new.php1,529 ▼923.75 ▲0.64660.19 ▼7.1652.22 ▲1.71
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.0499.29 ▲2.0944.61 ▼1.58
Head Meta Data /wp-admin/options-general.php?page=head-meta-data1,4261.8227.0447.54

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

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

This is the main PHP file of "Head Meta Data" version 20231026..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "20231026...")

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 plugin753 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP325389753

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions28
▷ Named functions28100.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
No PNG files were detected