78% iaf-headertags

Code Review | IAF HEADERTAGS

WordPress plugin IAF HEADERTAGS scored78%from 54 tests.

About plugin

  • Plugin page: iaf-headertags
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2021
  • Latest release: Jul 13, 2021
  • Number of updates: 5
  • Update frequency: every 17.0 days
  • Top authors: willfonkam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.17ms] Passed 4 tests

This is a short check of server-side resources used by IAF HEADERTAGS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.36 ▼3.94
Dashboard /wp-admin3.36 ▲0.0547.67 ▼4.50
Posts /wp-admin/edit.php3.41 ▲0.0552.23 ▲1.35
Add New Post /wp-admin/post-new.php5.97 ▲0.0786.30 ▼15.08
Media Library /wp-admin/upload.php3.29 ▲0.0533.93 ▼5.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
iaf-headertags-opts

Browser metrics Passed 4 tests

This is an overview of browser requirements for IAF HEADERTAGS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.35 ▼0.201.88 ▲0.1040.23 ▼3.12
Dashboard /wp-admin2,211 ▲375.56 ▼0.0395.08 ▲4.6842.84 ▲2.90
Posts /wp-admin/edit.php2,119 ▲221.97 ▼0.0237.93 ▲2.4735.15 ▲0.39
Add New Post /wp-admin/post-new.php1,543 ▲1723.62 ▲0.32677.48 ▼9.6754.42 ▼9.26
Media Library /wp-admin/upload.php1,413 ▲104.27 ▲0.0797.38 ▼8.6344.86 ▲1.40

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/iaf-headertags/iaf-headertags.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/iaf-headertags/inc/activate.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: engine, description, seo, tag, search...

iaf-headertags/iaf-headertags.php 92% from 13 tests

The entry point to "IAF HEADERTAGS" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected439 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP104727254
PO File1262788
CSS121083
JavaScript12014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin