84% remove-empty-p-tag

Code Review | Remove empty p tag

WordPress plugin Remove empty p tag scored84%from 54 tests.

About plugin

  • Plugin page: remove-empty-p-tag
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: May 30, 2017
  • Latest release: May 30, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: dev02ali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /951 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: ▼7.91ms] Passed 4 tests

This is a short check of server-side resources used by Remove empty p tag
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.61 ▼7.20
Dashboard /wp-admin3.31 ▲0.0050.20 ▼2.86
Posts /wp-admin/edit.php3.36 ▲0.0048.43 ▼3.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.00 ▼18.48
Media Library /wp-admin/upload.php3.23 ▲0.0042.80 ▲7.85

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Remove empty p tag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,786 ▲2514.16 ▼0.221.87 ▲0.1145.53 ▲6.06
Dashboard /wp-admin2,192 ▲155.58 ▲0.0588.61 ▼2.4743.80 ▼1.78
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0136.49 ▼1.0033.28 ▼4.28
Add New Post /wp-admin/post-new.php1,526 ▼2323.11 ▲5.06664.90 ▼40.9352.11 ▼24.52
Media Library /wp-admin/upload.php1,400 ▲34.08 ▼0.20101.66 ▼2.9143.00 ▲1.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/remove-empty-p-tag/function.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: formatting, post content, editor, wpautop, remove p...

remove-empty-p-tag/function.php 92% from 13 tests

The main PHP file in "Remove empty p tag" ver. 1.0.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: It is recommended to name the main PHP file as the plugin slug ("remove-empty-p-tag.php" instead of "function.php")

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

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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

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