94% custom-header-footer

Code Review | Custom Header Footer

WordPress plugin Custom Header Footer scored 94% from 54 tests.

About plugin

  • Plugin page: custom-header-footer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.1
  • WordPress version: 5.8.1
  • First release: Apr 20, 2017
  • Latest release: Jan 9, 2018
  • Number of updates: 35
  • Update frequency: every 7.7 days
  • Top authors: kumbhdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 6,842 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼137.97ms] Passed 4 tests

A check of server-side resources used by Custom Header Footer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.82 ▲15.62
Dashboard /wp-admin3.08 ▲0.0239.84 ▼6.41
Posts /wp-admin/edit.php3.13 ▲0.0247.18 ▲4.11
Add New Post /wp-admin/post-new.php5.44 ▲0.0195.50 ▼549.18
Media Library /wp-admin/upload.php3.02 ▲0.0236.97 ▼0.40

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Header Footer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.86 ▲0.238.98 ▼2.0649.79 ▲0.09
Dashboard /wp-admin2,993 ▲565.90 ▼0.06138.66 ▼4.16111.65 ▲2.19
Posts /wp-admin/edit.php2,759 ▲202.71 ▼0.0063.07 ▼1.5485.61 ▼14.52
Add New Post /wp-admin/post-new.php1,885 ▲21319.02 ▲0.13381.95 ▲16.88108.52 ▼0.51
Media Library /wp-admin/upload.php1,830 ▲235.03 ▼0.00149.55 ▼2.87123.44 ▲1.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-header-footer/custom-header-footer.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

custom-header-footer/custom-header-footer.php Passed 13 tests

Analyzing the main PHP file in "Custom Header Footer" version 1.1
44 characters long description:
This Plugin will add HTML code like css , js

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201561

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin