90% adminbar-link-comments-to-pending

Code Review | Adminbar Link Comments to Pending

WordPress plugin Adminbar Link Comments to Pending scored90%from 54 tests.

About plugin

  • Plugin page: adminbar-link-com...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9
  • WordPress version: 6.3.1
  • First release: May 27, 2014
  • Latest release: Jan 22, 2018
  • Number of updates: 11
  • Update frequency: every 121.4 days
  • Top authors: jrf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,085 total downloads


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
Installer ran successfully

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

An overview of server-side resources used by Adminbar Link Comments to Pending
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.02 ▼14.37
Dashboard /wp-admin3.31 ▲0.0148.57 ▼4.95
Posts /wp-admin/edit.php3.36 ▲0.0056.69 ▼1.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.03 ▼9.69
Media Library /wp-admin/upload.php3.23 ▲0.0035.88 ▼2.20

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Adminbar Link Comments to Pending
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.26 ▼0.271.64 ▼0.0342.56 ▼2.65
Dashboard /wp-admin2,195 ▲155.61 ▼0.1194.68 ▼1.0641.48 ▼2.00
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0638.22 ▼15.2237.69 ▼2.53
Add New Post /wp-admin/post-new.php1,526 ▼1123.50 ▲5.47674.90 ▲56.8752.00 ▼19.70
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0298.10 ▼4.1042.65 ▼3.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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)
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: pending, unapproved, admin bar, adminbar, comments

adminbar-link-comments-to-pending/adminbar-link-comments-to-pending.php Passed 13 tests

This is the main PHP file of "Adminbar Link Comments to Pending" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Changes the link from the Adminbar comments bubble to go straight to the 'Pending' comments queue.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin