84% admin-edit-comment

Code Review | Admin Edit Comment

WordPress plugin Admin Edit Comment scored84%from 54 tests.

About plugin

  • Plugin page: admin-edit-comment
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2018
  • Latest release: Oct 1, 2020
  • Number of updates: 12
  • Update frequency: every 56.2 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /943 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▲1.99ms] Passed 4 tests

A check of server-side resources used by Admin Edit Comment
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1242.14 ▼3.30
Dashboard /wp-admin3.42 ▲0.1155.16 ▲5.86
Posts /wp-admin/edit.php3.54 ▲0.1855.15 ▲8.43
Add New Post /wp-admin/post-new.php6.02 ▲0.13100.22 ▲4.18
Media Library /wp-admin/upload.php3.34 ▲0.1139.25 ▲1.22
Admin Edit Comment /wp-admin/options-general.php?page=admin-edit-comment3.3133.55

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Edit Comment
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.26 ▲0.081.88 ▼0.0139.14 ▼1.43
Dashboard /wp-admin2,199 ▲285.62 ▼0.1190.57 ▼0.3441.04 ▼2.57
Posts /wp-admin/edit.php2,116 ▲132.02 ▲0.0239.93 ▲0.5837.23 ▲2.52
Add New Post /wp-admin/post-new.php6,439 ▲4,88927.68 ▲4.35840.92 ▲213.6871.86 ▲5.29
Media Library /wp-admin/upload.php1,407 ▲44.33 ▲0.05100.56 ▼4.5541.96 ▼4.73
Admin Edit Comment /wp-admin/options-general.php?page=admin-edit-comment8452.0126.8227.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/admin-edit-comment/admin/admin.php:94

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
6 plugin tags: pressman, comment, edit, admin, wp10...

admin-edit-comment/admin-edit-comment.php Passed 13 tests

The principal PHP file in "Admin Edit Comment" v. 2.0.1 is loaded by WordPress automatically on each request
89 characters long description:
Adding an extra comment functionality in post screen exclusively for your editorial team.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected816 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP280163430
CSS1135189
JavaScript11721131
PO File1252766

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity27.50
▷ Minimum class complexity7.00
▷ Maximum class complexity48.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin