89% remove-w3c-validation-type-warnings

Code Review | Type Attribute Warnings Removal

WordPress plugin Type Attribute Warnings Removal scored89%from 54 tests.

About plugin

  • Plugin page: remove-w3c-valida...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2020
  • Latest release: Jul 29, 2023
  • Number of updates: 12
  • Update frequency: every 95.5 days
  • Top authors: sumitmalviya (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /4,358 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Type Attribute Warnings Removal
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.68 ▼2.41
Dashboard /wp-admin3.32 ▲0.0155.56 ▼2.48
Posts /wp-admin/edit.php3.37 ▲0.0153.04 ▼3.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.65 ▼24.16
Media Library /wp-admin/upload.php3.24 ▲0.0142.89 ▲3.84

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Type Attribute Warnings Removal
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.21 ▼0.321.95 ▲0.1644.72 ▲4.21
Dashboard /wp-admin2,192 ▲125.56 ▼0.0593.43 ▲1.8241.09 ▼6.83
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0336.58 ▼2.1934.07 ▼2.27
Add New Post /wp-admin/post-new.php1,526 ▼222.97 ▼0.23686.02 ▼16.3059.91 ▲3.18
Media Library /wp-admin/upload.php1,403 ▲34.11 ▼0.10100.93 ▼4.4548.03 ▼1.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Stable tag: Empty value
Please take inspiration from this readme.txt

remove-w3c-validation-type-warnings/w3c-type-warnings.php 85% from 13 tests

"Type Attribute Warnings Removal" version 1.0'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: The description should be shorter than 140 characters (currently 143 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("remove-w3c-validation-type-warnings.php" instead of "w3c-type-warnings.php")

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
No dangerous file extensions were detected16 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101216

PHP code Passed 2 tests

This is a short overview 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.12
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 functions150.00%
▷ Anonymous functions150.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