84% remove-blank-p-tag

Code Review | Remove Blank P Tag

WordPress plugin Remove Blank P Tag scored84%from 54 tests.

About plugin

  • Plugin page: remove-blank-p-tag
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 13, 2017
  • Latest release: Mar 31, 2023
  • Number of updates: 7
  • Update frequency: every 282.1 days
  • Top authors: vishitshah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

A check of server-side resources used by Remove Blank P Tag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.82 ▼1.95
Dashboard /wp-admin3.31 ▲0.0043.88 ▼3.23
Posts /wp-admin/edit.php3.36 ▲0.0049.65 ▲3.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.55 ▼16.56
Media Library /wp-admin/upload.php3.23 ▲0.0031.72 ▼1.90

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Remove Blank P Tag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5113.26 ▼1.111.76 ▲0.1146.12 ▲5.23
Dashboard /wp-admin2,203 ▲125.83 ▲0.7995.37 ▼9.1038.98 ▼3.42
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0140.27 ▼0.3136.35 ▲5.11
Add New Post /wp-admin/post-new.php1,542 ▲2318.03 ▼5.04611.47 ▼50.2151.95 ▼3.80
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0193.29 ▼5.5540.97 ▼2.79

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/remove-blank-p-tag/remove-blank-p-tag.php:28

User-side errors Passed 1 test

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

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
7 plugin tags: wpautop, page content remove p tag remove br tag, post content, page editer post editer, editor...

remove-blank-p-tag/remove-blank-p-tag.php Passed 13 tests

"Remove Blank P Tag" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
This plugin removes empty p and br tag from the post and page content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13235

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
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%
Functions0
▷ Named functions00.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
No PNG files were detected