10% seo-http-headers-easy

Code Review | "SEO-HEADERS-Easy" Protocol HTTP 1.1

WordPress plugin "SEO-HEADERS-Easy" Protocol HTTP 1.1 scored10%from 54 tests.

About plugin

  • Plugin page: seo-http-headers-...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.4
  • WordPress version: 6.3.1
  • First release: Jun 25, 2015
  • Latest release: Dec 10, 2015
  • Number of updates: 18
  • Update frequency: every 9.3 days
  • Top authors: Smiling_Hemp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,868 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/seo-http-headers-easy/seo_http_headers.class.php+77
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.07MB] [CPU: ▼13.61ms] Passed 4 tests

A check of server-side resources used by "SEO-HEADERS-Easy" Protocol HTTP 1.1
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.92 ▼0.5521.82 ▼24.19
Dashboard /wp-admin3.41 ▲0.0649.77 ▼17.99
Posts /wp-admin/edit.php3.52 ▲0.1649.11 ▲1.17
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.85 ▼13.41
Media Library /wp-admin/upload.php3.33 ▲0.1039.35 ▲1.23
HTTP 1.1 headers /wp-admin/tools.php?page=http-head-protokol-avk3.3239.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
http_headers_avk
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for "SEO-HEADERS-Easy" Protocol HTTP 1.1
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,398 ▼34814.05 ▼0.580.20 ▼1.550.19 ▼44.75
Dashboard /wp-admin2,202 ▲255.63 ▲0.1085.87 ▼8.2646.04 ▲2.55
Posts /wp-admin/edit.php2,107 ▲71.97 ▲0.0034.94 ▼2.8132.87 ▼3.94
Add New Post /wp-admin/post-new.php1,534 ▲13023.27 ▲4.64651.96 ▲16.7762.12 ▲16.72
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0299.15 ▲1.8048.55 ▲4.18
HTTP 1.1 headers /wp-admin/tools.php?page=http-head-protokol-avk1,9862.5662.5261.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=http-head-protokol-avk
    • > Notice in wp-content/plugins/seo-http-headers-easy/seo_http_headers.class.php+296
    Undefined variable: expir
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=http-head-protokol-avk
    • > Notice in wp-content/plugins/seo-http-headers-easy/seo_http_headers.class.php+296
    Undefined variable: ping

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-http-headers-easy/seo_http_headers.class.php:38
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seo-http-headers-easy/pages/t_single.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seo-http-headers-easy/pages/t_search.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seo-http-headers-easy/pages/t_category.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seo-http-headers-easy/pages/t_page.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seo-http-headers-easy/pages/t_tag.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/seo-http-headers-easy/pages/settings_menu.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seo-http-headers-easy/pages/t_index.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seo-http-headers-easy/pages/t_autor.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/seo-http-headers-easy/pages/tabel_head.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Settings page SEO-HTTP-Headers-Easy)
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Please fix this invalid url: "goo.gl/qnrM08"
The official readme.txt is a good inspiration

seo-http-headers-easy/seo_http_headers.class.php 92% from 13 tests

""SEO-HEADERS-Easy" Protocol HTTP 1.1" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("seo-http-headers-easy.php" instead of "seo_http_headers.class.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected970 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP104233642
CSS216154
PO File1325088
JavaScript361286

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1372.22%
▷ Protected methods316.67%
▷ Private methods211.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png34.64KB15.64KB▼ 54.84%
css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
css/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%