84% lct-temporary-wpautop-disable-shortcode

Code Review | LCT Temporary wpautop Disable Shortcode

WordPress plugin LCT Temporary wpautop Disable Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: lct-temporary-wpa...
  • Plugin version: 4.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Dec 18, 2013
  • Latest release: May 7, 2015
  • Number of updates: 19
  • Update frequency: every 29.1 days
  • Top authors: ircary (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /1,989 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.96ms] Passed 4 tests

A check of server-side resources used by LCT Temporary wpautop Disable Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.77 ▼0.65
Dashboard /wp-admin3.31 ▲0.0146.32 ▼2.76
Posts /wp-admin/edit.php3.36 ▲0.0149.01 ▲1.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.18 ▼5.32
Media Library /wp-admin/upload.php3.23 ▲0.0134.38 ▲0.88

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LCT Temporary wpautop Disable Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.11 ▼1.634.66 ▲2.8242.92 ▼7.27
Dashboard /wp-admin2,206 ▲215.84 ▼0.16105.53 ▼9.5438.92 ▼7.56
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0142.95 ▲2.5634.95 ▲0.72
Add New Post /wp-admin/post-new.php1,534 ▲1423.26 ▲0.13662.06 ▲7.7158.86 ▼1.44
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0394.54 ▼6.4342.84 ▼0.42

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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
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 take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lct-temporary-wpautop-disable-shortcode/lct-temporary-wpautop-disable.php on line 43
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/lct-temporary-wpautop-disable-shortcode/lct-temporary-wpautop-disable.php on line 43
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/lct-temporary-wpautop-disable-shortcode/lct-temporary-wpautop-disable.php on line 43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/lct-temporary-wpautop-disable-shortcode/lct-temporary-wpautop-disable.php:44

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: shortcode, disable wpautop

lct-temporary-wpautop-disable-shortcode/lct-temporary-wpautop-disable.php 85% from 13 tests

The main file in "LCT Temporary wpautop Disable Shortcode" v. 4.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("lct-temporary-wpautop-disable-shortcode.php" instead of "lct-temporary-wpautop-disable.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142036

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.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 files were detected