89% modern-admin-comments

Code Review | Modern Admin Comments by WPMarmite

WordPress plugin Modern Admin Comments by WPMarmite scored89%from 54 tests.

About plugin

  • Plugin page: modern-admin-comm...
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.3
  • WordPress version: 6.3.1
  • First release: Apr 2, 2020
  • Latest release: Dec 8, 2020
  • Number of updates: 11
  • Update frequency: every 22.7 days
  • Top authors: modernplugins (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

100+ active /3,233 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
This plugin's installer ran successfully

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

A check of server-side resources used by Modern Admin Comments by WPMarmite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0346.78 ▼1.17
Dashboard /wp-admin3.41 ▲0.0649.19 ▲1.94
Posts /wp-admin/edit.php3.42 ▲0.0248.16 ▲2.38
Add New Post /wp-admin/post-new.php5.95 ▲0.0294.96 ▼16.07
Media Library /wp-admin/upload.php3.29 ▲0.0236.82 ▲1.96

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Modern Admin Comments by WPMarmite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲21517.99 ▲3.6158.31 ▲56.1343.83 ▼3.57
Dashboard /wp-admin2,350 ▲1598.20 ▲3.27190.93 ▲88.8151.61 ▲6.26
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0439.48 ▲3.4436.68 ▲1.36
Add New Post /wp-admin/post-new.php1,514 ▼621.54 ▼1.74713.34 ▲61.1554.02 ▲11.04
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.0097.24 ▼10.6144.65 ▲3.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: comments

modern-admin-comments/modern-admin-comments.php 85% from 13 tests

"Modern Admin Comments by WPMarmite" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages/")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")

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
There were no executable files found in this plugin220 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24130158
PHP1175862

PHP code Passed 2 tests

An short overview of 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.56
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin