90% disable-wp-auto-formatting

Code Review | Disable WP Auto Formatting

WordPress plugin Disable WP Auto Formatting scored90%from 54 tests.

About plugin

  • Plugin page: disable-wp-auto-f...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.0-4.4
  • WordPress version: 6.3.1
  • First release: Jan 4, 2016
  • Latest release: Jan 6, 2016
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: craigsimps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /910 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: ▼7.18ms] Passed 4 tests

Analyzing server-side resources used by Disable WP Auto Formatting
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.13 ▼4.11
Dashboard /wp-admin3.31 ▲0.0148.16 ▼7.21
Posts /wp-admin/edit.php3.36 ▲0.0043.39 ▼7.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.71 ▼8.19
Media Library /wp-admin/upload.php3.23 ▲0.0033.49 ▼5.56

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Disable WP Auto Formatting
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.031.85 ▼0.0241.31 ▼3.30
Dashboard /wp-admin2,195 ▲185.59 ▼0.0493.21 ▼9.0940.02 ▼6.44
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0133.35 ▼7.3835.78 ▲0.80
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▲0.09666.09 ▲18.5054.98 ▼0.27
Media Library /wp-admin/upload.php1,400 ▼34.27 ▲0.0598.18 ▼6.2844.38 ▼7.28

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: disable mardown, disable wp textpatter, disable auto formatting

disable-wp-auto-formatting/disable-wp-auto-formatting.php Passed 13 tests

The main PHP script in "Disable WP Auto Formatting" version 1.0.0 is automatically included on every request by WordPress
87 characters long description:
A simple plugin which turns off the markdown-style auto formatting introduced in WP4.3.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown19020
PHP142613

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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