89% mourning

Code Review | Mourning

WordPress plugin Mourning scored89%from 54 tests.

About plugin

  • Plugin page: mourning
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2017
  • Latest release: Aug 4, 2020
  • Number of updates: 5
  • Update frequency: every 206.8 days
  • Top authors: jojoee (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /1,565 total downloads


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

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.98ms] Passed 4 tests

An overview of server-side resources used by Mourning
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.42 ▼1.41
Dashboard /wp-admin3.35 ▲0.0549.73 ▼0.28
Posts /wp-admin/edit.php3.46 ▲0.1146.51 ▼3.83
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.11 ▼2.41
Media Library /wp-admin/upload.php3.27 ▲0.0437.55 ▲0.37
Mourning /wp-admin/options-general.php?page=mrn-mourning3.2432.09

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Mourning
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.50 ▼0.091.81 ▲0.0643.74 ▲1.03
Dashboard /wp-admin2,207 ▲215.80 ▲0.89111.74 ▼2.2639.17 ▼6.10
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.0136.20 ▲0.3933.35 ▼1.10
Add New Post /wp-admin/post-new.php1,552 ▲3323.35 ▲0.29633.68 ▼38.0863.11 ▲5.42
Media Library /wp-admin/upload.php1,392 ▲14.25 ▼0.0298.69 ▼6.3242.03 ▼0.59
Mourning /wp-admin/options-general.php?page=mrn-mourning7281.536.7520.13

Uninstaller [IO: ▲0.00MB] [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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Grey out (screenshot-1.jpg)), #2 (Black ribbon (screenshot-2.jpg))
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

mourning/mourning.php 92% from 13 tests

The principal PHP file in "Mourning" v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected442 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1376.47%
▷ Protected methods00.00%
▷ Private methods423.53%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected