84% remove-double-click-to-edit

Code Review | Remove Double-Click to Edit for Comments

WordPress plugin Remove Double-Click to Edit for Comments scored84%from 54 tests.

About plugin

  • Plugin page: remove-double-cli...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9
  • WordPress version: 6.3.1
  • First release: Jan 19, 2014
  • Latest release: Jan 20, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /927 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
Install script ran successfully

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

Analyzing server-side resources used by Remove Double-Click to Edit for Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.46 ▼4.18
Dashboard /wp-admin3.31 ▲0.0149.04 ▼7.58
Posts /wp-admin/edit.php3.37 ▲0.0054.14 ▼4.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.85 ▼11.02
Media Library /wp-admin/upload.php3.24 ▲0.0042.53 ▲3.88

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-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Remove Double-Click to Edit for Comments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.111.97 ▲0.3445.83 ▲3.27
Dashboard /wp-admin2,195 ▲215.63 ▲0.0684.24 ▼10.7938.16 ▼4.82
Posts /wp-admin/edit.php2,100 ▼32.02 ▼0.0140.35 ▼4.4535.44 ▼6.00
Add New Post /wp-admin/post-new.php1,534 ▲618.34 ▼4.59656.77 ▲48.8670.29 ▲3.94
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.0397.52 ▼3.5044.95 ▼5.56

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

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-double-click-to-edit/remove-double-click-to-edit.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: double click, quick edit, comments, edit

remove-double-click-to-edit/remove-double-click-to-edit.php Passed 13 tests

The principal PHP file in "Remove Double-Click to Edit for Comments" v. 1.0 is loaded by WordPress automatically on each request
53 characters long description:
Disables the double-click to edit action for comments

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
Everything looks great! No dangerous files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16624

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin