84% disable-automatic-p-tags

Code Review | Disable Automatic P Tags

WordPress plugin Disable Automatic P Tags scored84%from 54 tests.

About plugin

  • Plugin page: disable-automatic...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2014
  • Latest release: Jun 7, 2014
  • Number of updates: 3
  • Update frequency: every 46.0 days
  • Top authors: binary-organic (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /8,709 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Disable Automatic P Tags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.19 ▼3.12
Dashboard /wp-admin3.31 ▲0.0050.01 ▼6.50
Posts /wp-admin/edit.php3.36 ▲0.0058.34 ▲3.57
Add New Post /wp-admin/post-new.php5.89 ▲0.00103.52 ▲3.03
Media Library /wp-admin/upload.php3.23 ▲0.0037.33 ▲1.57

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

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

Browser metrics Passed 4 tests

Disable Automatic P Tags: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,786 ▲2514.28 ▼0.291.73 ▲0.0944.69 ▲1.02
Dashboard /wp-admin2,195 ▲155.62 ▼0.0591.44 ▼13.3843.36 ▼7.37
Posts /wp-admin/edit.php2,103 ▼02.01 ▼0.0139.59 ▼7.1436.56 ▲0.24
Add New Post /wp-admin/post-new.php1,528 ▼023.07 ▼0.05644.05 ▼45.6952.89 ▼2.70
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.0395.39 ▼10.2444.77 ▼1.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/disable-automatic-p-tags/remove-wpautop.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: auto p, wpautop, line breaks, editor

disable-automatic-p-tags/remove-wpautop.php 85% from 13 tests

The main file in "Disable Automatic P Tags" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-automatic-p-tags.php" instead of "remove-wpautop.php")
  • Description: The description should be shorter than 140 characters (currently 294 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111234

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin