83% seo-remove-h1

Code Review | SEO - Remove H1

WordPress plugin SEO - Remove H1 scored83%from 54 tests.

About plugin

  • Plugin page: seo-remove-h1
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-3.9
  • WordPress version: 6.3.1
  • First release: Jun 28, 2014
  • Latest release: Jun 28, 2014
  • Number of updates: 7
  • Update frequency: every 39.9 days
  • Top authors: boborchard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

This is a short check of server-side resources used by SEO - Remove H1
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.28 ▼3.34
Dashboard /wp-admin3.31 ▲0.0059.56 ▲8.63
Posts /wp-admin/edit.php3.36 ▲0.0048.23 ▼6.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.16 ▲0.54
Media Library /wp-admin/upload.php3.24 ▲0.0038.20 ▲4.13

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

SEO - Remove H1: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.091.67 ▼0.2641.80 ▼7.80
Dashboard /wp-admin2,195 ▲155.64 ▲0.0589.13 ▼5.7838.44 ▼4.89
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0539.28 ▲4.5437.19 ▲0.34
Add New Post /wp-admin/post-new.php1,526 ▼223.37 ▲0.27655.11 ▲1.0361.36 ▼16.83
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.0097.69 ▼9.8443.84 ▼4.15

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
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/seo-remove-h1/remove-h1.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === seo-remove-h1 === )
  • Screenshots: Screenshot #1 (Screenshot of H1 removed from the editor) image required
The official readme.txt is a good inspiration

seo-remove-h1/remove-h1.php 92% from 13 tests

The main file in "SEO - Remove H1" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("seo-remove-h1.php" instead of "remove-h1.php")

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
Everything looks great! No dangerous files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1386

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png63.96KB18.43KB▼ 71.19%