84% remove-wp-meta-tags

Code Review | Easy Header Footer - Speedup, Security and Minify

WordPress plugin Easy Header Footer - Speedup, Security and Minify scored84%from 54 tests.

About plugin

  • Plugin page: remove-wp-meta-tags
  • Plugin version: 3.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 6.3.1
  • First release: May 24, 2017
  • Latest release: Jun 20, 2019
  • Number of updates: 40
  • Update frequency: every 19.0 days
  • Top authors: infosatech (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /6,807 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.38MB] [CPU: ▼1.73ms] Passed 4 tests

An overview of server-side resources used by Easy Header Footer - Speedup, Security and Minify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3644.14 ▲1.20
Dashboard /wp-admin3.75 ▲0.4054.99 ▼16.44
Posts /wp-admin/edit.php3.80 ▲0.4455.07 ▲5.50
Add New Post /wp-admin/post-new.php6.27 ▲0.38100.52 ▲6.18
Media Library /wp-admin/upload.php3.61 ▲0.3840.28 ▲2.82
Easy Header Footer /wp-admin/options-general.php?page=easy-header-footer3.6537.49

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options
ehf_plugin_installed_time_donate
can_compress_scripts
theysaidso_admin_options
db_upgraded
ehf_plugin_installed_time
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Header Footer - Speedup, Security and Minify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.75 ▲0.782.26 ▲0.4442.26 ▼5.57
Dashboard /wp-admin2,199 ▲195.57 ▼0.0185.83 ▼10.3539.98 ▼2.74
Posts /wp-admin/edit.php2,107 ▲102.14 ▲0.1441.60 ▲3.7538.89 ▲3.00
Add New Post /wp-admin/post-new.php6,273 ▲4,74726.10 ▲3.04924.71 ▲257.9561.05 ▼2.67
Media Library /wp-admin/upload.php1,404 ▲44.22 ▼0.05112.40 ▲15.5247.54 ▼0.15
Easy Header Footer /wp-admin/options-general.php?page=easy-header-footer2,1171.9334.7083.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • ehf_plugin_installed_time_donate

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant EHF_PLUGIN_VERSION - assumed 'EHF_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/remove-wp-meta-tags/admin/settings/settings-page.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-wp-meta-tags/admin/meta-box.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-wp-meta-tags/admin/notice.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-wp-meta-tags/includes/security-settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-wp-meta-tags/includes/script-settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-wp-meta-tags/includes/meta-settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/remove-wp-meta-tags/admin/loader.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-wp-meta-tags/admin/donate.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/remove-wp-meta-tags/admin/settings/settings-page.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-wp-meta-tags/includes/minify-settings.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 24 tag instead of maximum 10
The official readme.txt might help

remove-wp-meta-tags/remove-wp-meta-tags.php 92% from 13 tests

"Easy Header Footer - Speedup, Security and Minify" version 3.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,210 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP182912481,681
CSS2370224
JavaScript2300206
SVG10099

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions106
▷ Named functions9892.45%
▷ Anonymous functions87.55%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin