94% administrate-more-comments

Code Review | Administrate more comments

WordPress plugin Administrate more comments scored 94% from 54 tests.

About plugin

  • Plugin page: administrate-more...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.6
  • WordPress version: 5.9.2
  • First release: Aug 7, 2009
  • Latest release: Jun 7, 2013
  • Number of updates: 26
  • Update frequency: every 98.0 days
  • Top authors: jjunyent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,562 total downloads


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.00MB] [CPU: ▼288.63ms] Passed 4 tests

Server-side resources used by Administrate more comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.22 ▲0.0166.44 ▲7.65
Dashboard /wp-admin4.04 ▲0.0137.92 ▼5.66
Posts /wp-admin/edit.php4.34 ▲0.0140.89 ▼5.94
Add New Post /wp-admin/post-new.php7.57 ▼0.02155.67 ▼1,143.11
Media Library /wp-admin/upload.php3.99 ▲0.0127.98 ▲0.20

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Administrate more comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲6116.14 ▲0.365.59 ▼1.202.22 ▲0.02
Dashboard /wp-admin2,895 ▲356.14 ▼0.01131.47 ▲5.47159.64 ▼8.60
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0069.37 ▼2.61142.79 ▼10.46
Add New Post /wp-admin/post-new.php1,711 ▲5020.67 ▼1.32432.63 ▲0.35186.83 ▲5.09
Media Library /wp-admin/upload.php1,695 ▼05.49 ▼0.13151.69 ▼6.17213.04 ▲6.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/administrate-more-comments/admin-more-comments.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% 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 to be fixed:
  • Screenshots: Add an image for screenshot #1 (100 comments shown.)
The official readme.txt is a good inspiration

administrate-more-comments/admin-more-comments.php 92% from 13 tests

The main file in "Administrate more comments" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("administrate-more-comments.php" instead of "admin-more-comments.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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 functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png67.78KB22.33KB▼ 67.06%
assets/screenshot-1.png67.78KB22.33KB▼ 67.06%
assets/banner-750x250.png34.58KB11.06KB▼ 68.01%
assets/amc-banner-750x250.png34.58KB11.06KB▼ 68.01%
assets/amc-banner-870x250.png35.08KB11.13KB▼ 68.26%