84% administrate-more-comments

Code Review | Administrate more comments

WordPress plugin Administrate more comments scored 84% 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: 6.3.1
  • 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

10+ active / 1,784 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.03ms] Passed 4 tests

An overview of server-side resources used by Administrate more comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.30 ▼19.35
Dashboard /wp-admin3.32 ▲0.0150.81 ▲0.05
Posts /wp-admin/edit.php3.37 ▲0.0151.33 ▼13.35
Add New Post /wp-admin/post-new.php5.90 ▲0.01133.17 ▲35.25
Media Library /wp-admin/upload.php3.24 ▲0.0135.97 ▲0.53

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
amc_number_comments
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Administrate more comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.39 ▼0.174.19 ▲2.1942.47 ▼2.47
Dashboard /wp-admin2,206 ▲35.85 ▲0.80111.26 ▼2.2542.67 ▼0.86
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0040.30 ▼0.2234.71 ▼1.29
Add New Post /wp-admin/post-new.php1,535 ▲223.28 ▲0.12596.62 ▼153.5749.65 ▼5.45
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.00102.27 ▼4.4641.53 ▼2.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > 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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (100 comments shown.) image missing
The official readme.txt is a good inspiration

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

This is the main PHP file of "Administrate more comments" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • 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 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1173416

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
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
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%
Functions3
▷ Named functions3100.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
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
assets/banner-750x250.png34.58KB11.06KB▼ 68.01%
assets/screenshot-1.png67.78KB22.33KB▼ 67.06%
assets/amc-banner-750x250.png34.58KB11.06KB▼ 68.01%
screenshot-1.png67.78KB22.33KB▼ 67.06%
assets/amc-banner-870x250.png35.08KB11.13KB▼ 68.26%