84% delete-custom-header

Code Review | Delete Custom Header

WordPress plugin Delete Custom Header scored84%from 54 tests.

About plugin

  • Plugin page: delete-custom-header
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: May 15, 2013
  • Latest release: May 17, 2014
  • Number of updates: 14
  • Update frequency: every 49.4 days
  • Top authors: Beej (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,990 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.10ms] Passed 4 tests

A check of server-side resources used by Delete Custom Header
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.38 ▼8.59
Dashboard /wp-admin3.31 ▲0.0050.05 ▲5.62
Posts /wp-admin/edit.php3.36 ▲0.0046.59 ▼3.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.50 ▼4.57
Media Library /wp-admin/upload.php3.23 ▲0.0037.91 ▲3.80

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Delete Custom Header
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.144.84 ▲2.3941.47 ▼13.18
Dashboard /wp-admin2,209 ▲214.87 ▼0.0096.79 ▼21.1141.54 ▲0.95
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0637.17 ▼2.0435.93 ▼2.27
Add New Post /wp-admin/post-new.php1,536 ▲2223.12 ▲5.59682.76 ▲56.9257.16 ▲7.01
Media Library /wp-admin/upload.php1,382 ▼64.29 ▲0.0798.76 ▼3.8041.31 ▼0.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 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/delete-custom-header/delete-custom-header.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: headers

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

The main file in "Delete Custom Header" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Delete uploaded header images and remove them from the database.

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
Good job! No executable or dangerous file extensions detected53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131153

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions2
▷ Named functions2100.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