94% admin-can-always-comment

Code Review | Admin Can Always Comment

WordPress plugin Admin Can Always Comment scored 94% 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: 5.9.2
  • 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,036 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.02MB] [CPU: ▼292.63ms] Passed 4 tests

Analyzing server-side resources used by Admin Can Always Comment
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.85 ▲1.43
Dashboard /wp-admin3.42 ▲0.0032.86 ▼1.53
Posts /wp-admin/edit.php3.65 ▲0.0037.84 ▲1.60
Add New Post /wp-admin/post-new.php6.89 ▼0.0992.33 ▼1,169.32
Media Library /wp-admin/upload.php3.30 ▲0.0023.39 ▼1.10

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Can Always Comment: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲6316.15 ▲0.346.37 ▲0.792.34 ▲0.26
Dashboard /wp-admin2,895 ▲416.14 ▼0.05118.15 ▼19.43161.00 ▲1.14
Posts /wp-admin/edit.php2,685 ▼63.23 ▲0.0064.33 ▼0.42143.18 ▼3.02
Add New Post /wp-admin/post-new.php1,668 ▼9018.55 ▼3.58426.06 ▼55.99156.83 ▼5.08
Media Library /wp-admin/upload.php1,698 ▼55.55 ▼0.02146.04 ▲5.43195.49 ▲5.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 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 smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === admin-can-always-comment === )
Please take inspiration from this readme.txt

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

The main PHP file in "Admin Can Always Comment" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
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 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15157

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin