84% admin-can-always-comment

Code Review | Admin Can Always Comment

WordPress plugin Admin Can Always Comment scored84%from 54 tests.

About plugin

  • Plugin page: admin-can-always-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.0-4.0
  • WordPress version: 6.3.1
  • First release: Aug 30, 2013
  • Latest release: Sep 5, 2014
  • Number of updates: 5
  • Update frequency: every 74.2 days
  • Top authors: arkimedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Admin Can Always Comment
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.35 ▼8.31
Dashboard /wp-admin3.31 ▲0.0041.23 ▼6.93
Posts /wp-admin/edit.php3.36 ▲0.0042.84 ▼10.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.83 ▼16.71
Media Library /wp-admin/upload.php3.23 ▲0.0035.10 ▲3.97

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

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

Browser metrics Passed 4 tests

Admin Can Always Comment: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▲0.001.59 ▼0.1439.94 ▼9.26
Dashboard /wp-admin2,195 ▲185.63 ▲0.0184.52 ▼16.3938.17 ▼5.84
Posts /wp-admin/edit.php2,079 ▼212.02 ▲0.0834.79 ▼5.1231.31 ▼3.11
Add New Post /wp-admin/post-new.php1,527 ▼1022.97 ▼1.95584.71 ▼23.5755.06 ▼27.70
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0299.61 ▲0.8841.85 ▼5.89

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-can-always-comment/admin-can-always-comment.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === admin-can-always-comment === )
You can take inspiration from this readme.txt

admin-can-always-comment/admin-can-always-comment.php Passed 13 tests

The entry point to "Admin Can Always Comment" version 1.1 is a PHP file that has certain tags in its header comment area
42 characters long description:
Admin Can Comment Even If Thread Is Closed

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15157

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin