100% toggle-wpautop

Code Review | Toggle wpautop

WordPress plugin Toggle wpautop scored 100% from 54 tests.

About plugin

  • Plugin page: toggle-wpautop
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 5.8.1
  • First release: Feb 25, 2013
  • Latest release: Apr 7, 2021
  • Number of updates: 37
  • Update frequency: every 80.1 days
  • Top authors: desrosj (91.89%)aware (8.11%)linchpin_agency (5.41%)

Code review

54 tests

User reviews

32 reviews

Install metrics

10,000+ active / 82,388 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼142.13ms] Passed 4 tests

An overview of server-side resources used by Toggle wpautop
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0437.27 ▲3.22
Dashboard /wp-admin3.11 ▲0.0649.24 ▲4.46
Posts /wp-admin/edit.php3.16 ▲0.0640.01 ▼4.19
Add New Post /wp-admin/post-new.php5.47 ▲0.0489.99 ▼569.10
Media Library /wp-admin/upload.php3.05 ▲0.0533.98 ▲1.55

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
lp_toggle_wpautop_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Toggle wpautop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.34 ▲0.5210.28 ▼1.7049.54 ▲2.01
Dashboard /wp-admin2,970 ▲345.89 ▼0.25143.22 ▼28.29117.23 ▲6.35
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0179.17 ▲15.9497.45 ▲6.98
Add New Post /wp-admin/post-new.php1,872 ▲18919.13 ▲0.40408.06 ▲35.03106.81 ▼3.28
Media Library /wp-admin/upload.php1,810 ▼05.04 ▲0.04156.35 ▼3.64111.10 ▼3.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: post content, custom post types, wpautop, editor, add_filter...

toggle-wpautop/toggle-wpautop.php 92% from 13 tests

"Toggle wpautop" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

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
Good job! No executable or dangerous file extensions detected304 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP156119179
JSON10066
Markdown332059

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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