84% empty-p-tag

Code Review | Empty P Tag

WordPress plugin Empty P Tag scored84%from 54 tests.

About plugin

  • Plugin page: empty-p-tag
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2017
  • Latest release: Feb 16, 2023
  • Number of updates: 48
  • Update frequency: every 40.8 days
  • Top authors: husainahmedqureshi (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /4,498 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by Empty P Tag
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.75 ▼4.39
Dashboard /wp-admin3.31 ▲0.0048.59 ▼3.96
Posts /wp-admin/edit.php3.36 ▲0.0047.69 ▼2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.03 ▼10.64
Media Library /wp-admin/upload.php3.23 ▲0.0037.62 ▼0.91

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Empty P Tag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,786 ▼014.35 ▼0.001.72 ▼0.5942.60 ▼5.99
Dashboard /wp-admin2,198 ▲215.61 ▲0.0192.50 ▼12.4641.33 ▼3.99
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0037.26 ▲1.1534.09 ▼0.34
Add New Post /wp-admin/post-new.php1,526 ▼223.11 ▼0.21685.90 ▲10.8268.07 ▲6.69
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.0195.99 ▼13.3544.99 ▼4.66

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/empty-p-tag/empty-p-tag.php:12

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: excerpt, wpautop, formatting, filter, post content...

empty-p-tag/empty-p-tag.php Passed 13 tests

"Empty P Tag" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
This plugin removes empty p and br tag from the content.

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 detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14910

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin