10% makemydonation-imo

Code Review | Make My Donation - In Memory Of Platform

WordPress plugin Make My Donation - In Memory Of Platform scored10%from 54 tests.

About plugin

  • Plugin page: makemydonation-imo
  • Plugin version: 1.13.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.4.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2016
  • Latest release: May 22, 2020
  • Number of updates: 128
  • Update frequency: every 11.8 days
  • Top authors: danillonunes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,419 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/makemydonation-imo/mmdimo.php+147
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.80MB] [CPU: ▼59.14ms] Passed 4 tests

A check of server-side resources used by Make My Donation - In Memory Of Platform
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.276.38 ▼37.11
Dashboard /wp-admin2.21 ▼1.097.28 ▼49.19
Posts /wp-admin/edit.php2.21 ▼1.155.83 ▼51.83
Add New Post /wp-admin/post-new.php2.21 ▼3.687.43 ▼98.42
Media Library /wp-admin/upload.php2.21 ▼1.026.08 ▼28.78
Make My Donation /wp-admin/options-general.php?page=mmdimo2.216.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Make My Donation - In Memory Of Platform
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.23 ▼0.142.07 ▲0.5041.96 ▼7.31
Dashboard /wp-admin2,202 ▲225.63 ▼0.0289.08 ▼1.5139.92 ▼7.44
Posts /wp-admin/edit.php2,104 ▲72.03 ▲0.0838.49 ▼1.1735.15 ▼0.11
Add New Post /wp-admin/post-new.php6,537 ▲5,01124.79 ▲1.21895.16 ▲233.8765.19 ▲11.15
Media Library /wp-admin/upload.php1,407 ▲104.19 ▲0.02100.61 ▼0.2144.65 ▼3.21
Make My Donation /wp-admin/options-general.php?page=mmdimo1,2802.1430.6427.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/makemydonation-imo/mmdimo.php+147
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mmdimo
    • > POST request to /wp-admin/admin-ajax.php?action=mmdimo_load_donations&nonce=36a3062b6a
    • > Deprecated in wp-content/plugins/makemydonation-imo/mmdimo.php+147
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/makemydonation-imo/api.php
    • > /wp-content/plugins/makemydonation-imo/options.php
    • > /wp-content/plugins/makemydonation-imo/metabox.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/makemydonation-imo/lib/wp-background-processing/classes/wp-background-process.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/makemydonation-imo/mmdimo.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/makemydonation-imo/lib/wp-background-processing/wp-background-processing.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/makemydonation-imo/classes/mmdimo-load-donations.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: donation, charity, third-party, funeral home, obituary...

makemydonation-imo/mmdimo.php 77% from 13 tests

The main PHP file in "Make My Donation - In Memory Of Platform" ver. 1.13.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)
  • 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
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("makemydonation-imo.php" instead of "mmdimo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,155 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP93414281,304
JavaScript1092127830
CSS6224550
Sass1140239
Markdown2930214
JSON10018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity12.00
▷ Minimum class complexity2.00
▷ Maximum class complexity30.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes266.67%
▷ Concrete classes133.33%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods1542.86%
▷ Protected methods2057.14%
▷ Private methods00.00%
Functions49
▷ Named functions49100.00%
▷ Anonymous functions00.00%
Constants2
▷ 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/orghunter-csc/img/search.png0.23KB0.37KB0.00%
lib/orghunter-csc/lib/chosen/chosen-sprite.png0.53KB0.88KB0.00%
lib/orghunter-csc/lib/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%