79% autoclose

Code Review | Auto-Close Comments, Pingbacks and Trackbacks

WordPress plugin Auto-Close Comments, Pingbacks and Trackbacks scored79%from 54 tests.

About plugin

  • Plugin page: autoclose
  • Plugin version: 2.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2008
  • Latest release: Jul 26, 2023
  • Number of updates: 28
  • Update frequency: every 195.0 days
  • Top authors: Ajay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /19,097 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.12MB] [CPU: ▼3.92ms] Passed 4 tests

Server-side resources used by Auto-Close Comments, Pingbacks and Trackbacks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.05 ▼4.78
Dashboard /wp-admin3.49 ▲0.1849.33 ▼3.00
Posts /wp-admin/edit.php3.54 ▲0.1850.43 ▼2.22
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.53 ▼5.69
Media Library /wp-admin/upload.php3.35 ▲0.1240.70 ▲7.45
AutoClose Tools /wp-admin/tools.php?page=acc_tools_page3.3732.85
AutoClose /wp-admin/options-general.php?page=acc_options_page3.3640.46

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
acc_settings
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Auto-Close Comments, Pingbacks and Trackbacks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.74 ▲0.161.90 ▼0.2338.88 ▼2.44
Dashboard /wp-admin2,208 ▲315.58 ▼0.0290.20 ▼1.6946.82 ▲7.51
Posts /wp-admin/edit.php2,110 ▲71.98 ▼0.0539.55 ▼1.5236.77 ▲1.98
Add New Post /wp-admin/post-new.php1,534 ▲823.64 ▲0.71649.34 ▼20.7656.62 ▲0.13
Media Library /wp-admin/upload.php1,410 ▲134.19 ▼0.0195.81 ▼8.8145.06 ▼0.87
AutoClose Tools /wp-admin/tools.php?page=acc_tools_page1,0902.1727.6526.43
AutoClose /wp-admin/options-general.php?page=acc_options_page1,6955.12113.1881.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/autoclose/autoclose.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/autoclose/includes/admin/sidebar.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autoclose/includes/main.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
7 plugin tags: revisions, autoclose, pingback, spam, anti-spam...

autoclose/autoclose.php Passed 13 tests

"Auto-Close Comments, Pingbacks and Trackbacks" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
Automatically close Comments, Pingbacks and Trackbacks. Manage and delete revisions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,545 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP166121,2971,897
PO File1112126311
JavaScript86018273
Markdown131040
XML18624

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity60.00
▷ Minimum class complexity9.00
▷ Maximum class complexity111.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods78
▷ Static methods67.69%
▷ Public methods7798.72%
▷ Protected methods11.28%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/admin/images/fb.png1.51KB1.59KB0.00%