89% mr-utils

Code Review | MR.Utils

WordPress plugin MR.Utils scored89%from 54 tests.

About plugin

  • Plugin page: mr-utils
  • Plugin version: 0.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Dec 20, 2021
  • Latest release: Dec 27, 2022
  • Number of updates: 17
  • Update frequency: every 21.8 days
  • Top authors: marcosrego (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /908 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.03MB] [CPU: ▼5.01ms] Passed 4 tests

Analyzing server-side resources used by MR.Utils
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.42 ▼2.01
Dashboard /wp-admin3.34 ▲0.0348.26 ▼2.83
Posts /wp-admin/edit.php3.39 ▲0.0349.80 ▼3.07
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.43 ▼10.49
Media Library /wp-admin/upload.php3.26 ▲0.0336.29 ▼3.64

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by MR.Utils
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.39 ▲1.193.92 ▼0.5437.89 ▼9.16
Dashboard /wp-admin2,198 ▲215.59 ▼0.0288.19 ▼4.8140.63 ▼1.02
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0539.20 ▼3.6035.00 ▼3.88
Add New Post /wp-admin/post-new.php1,565 ▲3624.46 ▲1.43694.42 ▲14.4336.82 ▼21.56
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.07100.37 ▼16.1141.86 ▼5.69

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
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

mr-utils/index.php 92% from 13 tests

The primary PHP file in "MR.Utils" version 0.2.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mr-utils.php" instead of "index.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
No dangerous file extensions were detected32,108 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
JSON20016,186
JavaScript73334879,294
CSS7434886,437
PHP51435187
Markdown1304

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Functions4
▷ Named functions4100.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