84% remove-unwanted-p-tags

Code Review | Remove Unwanted P tags

WordPress plugin Remove Unwanted P tags scored84%from 54 tests.

About plugin

  • Plugin page: remove-unwanted-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 6.3.1
  • First release: Mar 14, 2019
  • Latest release: Mar 14, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: umang7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 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
Installer ran successfully

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

Analyzing server-side resources used by Remove Unwanted P tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.39 ▲2.46
Dashboard /wp-admin3.31 ▲0.0149.94 ▲1.17
Posts /wp-admin/edit.php3.36 ▲0.0048.99 ▼1.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.43 ▼11.06
Media Library /wp-admin/upload.php3.23 ▲0.0037.78 ▲3.15

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Remove Unwanted P tags
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.60 ▲0.251.76 ▲0.1843.81 ▲1.05
Dashboard /wp-admin2,195 ▲215.64 ▼0.0190.33 ▼0.8540.91 ▼1.11
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0535.78 ▼5.7836.72 ▼5.68
Add New Post /wp-admin/post-new.php1,535 ▲618.22 ▼4.99629.84 ▼11.8974.35 ▲24.86
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.0296.34 ▼6.4545.97 ▲1.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
Good news, no errors were detected

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remove-unwanted-p-tags/remove-unwanted-ptags.php:13

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

remove-unwanted-p-tags/remove-unwanted-ptags.php 92% from 13 tests

The main PHP file in "Remove Unwanted P tags" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("remove-unwanted-p-tags.php" instead of "remove-unwanted-ptags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1167

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin