83% custom-header-footer-by-bytemantra

Code Review | Custom Header Footer By ByteMantra

WordPress plugin Custom Header Footer By ByteMantra scored83%from 54 tests.

About plugin

  • Plugin page: custom-header-foo...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Jan 24, 2013
  • Latest release: Jan 29, 2013
  • Number of updates: 14
  • Update frequency: every 0.4 days
  • Top authors: kunalpawar15 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,642 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.58ms] Passed 4 tests

Server-side resources used by Custom Header Footer By ByteMantra
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.57 ▲0.63
Dashboard /wp-admin3.33 ▼0.0244.52 ▼13.05
Posts /wp-admin/edit.php3.38 ▲0.0248.19 ▲0.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.17 ▼14.59
Media Library /wp-admin/upload.php3.25 ▲0.0234.38 ▲1.77
Custom Header Footer Content /wp-admin/options-general.php?page=custom_header_footer_bytemantra3.2232.12

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Custom Header Footer By ByteMantra: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.221.74 ▲0.0943.57 ▲0.44
Dashboard /wp-admin2,202 ▲285.63 ▲0.0293.71 ▲2.7840.92 ▲0.40
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0238.65 ▲4.0239.59 ▲1.33
Add New Post /wp-admin/post-new.php1,530 ▲422.91 ▼0.50645.52 ▼12.3053.91 ▲1.94
Media Library /wp-admin/upload.php1,404 ▲44.13 ▼0.0394.29 ▼1.3842.68 ▲2.50
Custom Header Footer Content /wp-admin/options-general.php?page=custom_header_footer_bytemantra8801.9923.0134.64

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/custom-header-footer-by-bytemantra/style.php
    • > /wp-content/plugins/custom-header-footer-by-bytemantra/custom_header_footer_bytemanta.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === custom-header-footer-by-bytemantra === )
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

custom-header-footer-by-bytemantra/custom_header_footer_bytemanta.php 92% from 13 tests

"Custom Header Footer By ByteMantra" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("custom-header-footer-by-bytemantra.php" instead of "custom_header_footer_bytemanta.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
There were no executable files found in this plugin129 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23530129

PHP code Passed 2 tests

Analyzing 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.21
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin