100% adminbar-link-comments-to-pending

Code Review | Adminbar Link Comments to Pending

WordPress plugin Adminbar Link Comments to Pending scored 100% 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: 5.9.2
  • 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

100+ active / 1,700 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Adminbar Link Comments to Pending
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0160.14 ▲1.79
Dashboard /wp-admin3.41 ▲0.0137.33 ▲1.07
Posts /wp-admin/edit.php3.65 ▲0.0141.69 ▼1.27
Add New Post /wp-admin/post-new.php6.90 ▼0.0994.12 ▼1,182.63
Media Library /wp-admin/upload.php3.30 ▲0.0029.59 ▲2.89

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Adminbar Link Comments to Pending
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.91 ▲0.136.99 ▲1.392.82 ▲0.79
Dashboard /wp-admin2,895 ▲346.03 ▼0.16116.97 ▼17.78151.54 ▼6.59
Posts /wp-admin/edit.php2,691 ▼03.24 ▼0.0062.95 ▲0.02141.55 ▼3.14
Add New Post /wp-admin/post-new.php1,758 ▲6221.36 ▼0.83435.43 ▲39.72157.00 ▲3.99
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.10138.87 ▼1.81180.69 ▼4.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

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, adminbar, admin bar, comments, unapproved

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

The main file in "Adminbar Link Comments to Pending" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP242818

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected