89% mk-reminders-creator

Code Review | MK Reminders Creator

WordPress plugin MK Reminders Creator scored89%from 54 tests.

About plugin

  • Plugin page: mk-reminders-creator
  • Plugin version: 1.0
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 24, 2020
  • Latest release: Jan 14, 2021
  • Number of updates: 3
  • Update frequency: every 58.4 days
  • Top authors: mertkocakaya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by MK Reminders Creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.04 ▲0.59
Dashboard /wp-admin3.31 ▲0.0147.91 ▼5.74
Posts /wp-admin/edit.php3.36 ▲0.0152.92 ▲3.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.75 ▼3.09
Media Library /wp-admin/upload.php3.24 ▲0.0146.65 ▲11.64

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MK Reminders Creator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.24 ▼0.111.79 ▼0.0543.41 ▼5.01
Dashboard /wp-admin2,210 ▲335.69 ▲0.1182.83 ▼24.2273.19 ▲29.72
Posts /wp-admin/edit.php2,121 ▲211.98 ▲0.0439.55 ▲0.6832.96 ▼4.53
Add New Post /wp-admin/post-new.php1,691 ▲16522.23 ▼0.77769.60 ▲113.1260.57 ▲7.15
Media Library /wp-admin/upload.php1,412 ▲154.13 ▼0.11107.31 ▲7.1374.14 ▲28.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

mk-reminders-creator/index.php 92% from 13 tests

The primary PHP file in "MK Reminders Creator" version 1.0 is used by WordPress to initiate all plugin functionality
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 ("mk-reminders-creator.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected119 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP239989
CSS23630

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
mk-reminders-icon.png0.35KB0.26KB▼ 25.41%