62% mind-doodle-sitemap

Code Review | Mind Doodle Visual Sitemaps & Tasks

WordPress plugin Mind Doodle Visual Sitemaps & Tasks scored62%from 54 tests.

About plugin

  • Plugin page: mind-doodle-sitemap
  • Plugin version: 1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.2.3
  • WordPress version: 6.3.1
  • First release: May 21, 2019
  • Latest release: Oct 12, 2019
  • Number of updates: 39
  • Update frequency: every 3.8 days
  • Top authors: minddoodle (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /3,984 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.23MB] [CPU: ▼41.47ms] Passed 4 tests

A check of server-side resources used by Mind Doodle Visual Sitemaps & Tasks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7114.95 ▼24.10
Dashboard /wp-admin2.78 ▼0.5217.19 ▼36.35
Posts /wp-admin/edit.php2.78 ▼0.5716.77 ▼32.36
Add New Post /wp-admin/post-new.php2.78 ▼3.1019.36 ▼73.06
Media Library /wp-admin/upload.php2.78 ▼0.4417.23 ▼16.45
Sitemap /wp-admin/admin.php?page=sitemap2.7816.81
Tasks /wp-admin/admin.php?page=md_tasks2.7817.03
Mind Doodle /wp-admin/admin.php?page=md_plugin2.7817.42

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 130 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
sitemap
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Mind Doodle Visual Sitemaps & Tasks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,997 ▲26221.52 ▲7.1199.20 ▲97.1746.35 ▲1.49
Dashboard /wp-admin2,281 ▲965.91 ▲0.05108.50 ▲6.9240.10 ▼2.92
Posts /wp-admin/edit.php2,164 ▲752.03 ▲0.0440.84 ▲5.9034.35 ▼0.66
Add New Post /wp-admin/post-new.php6,395 ▲4,87627.63 ▲4.55924.54 ▲246.6243.13 ▼17.84
Media Library /wp-admin/upload.php1,464 ▲764.21 ▼0.0199.89 ▼5.9444.69 ▲2.54
Sitemap /wp-admin/admin.php?page=sitemap1,0617.78173.13123.22
Tasks /wp-admin/admin.php?page=md_tasks9421.8225.8546.39
Mind Doodle /wp-admin/admin.php?page=md_plugin1,47010.72268.7465.18

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
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/mind-doodle-sitemap/index.php+201
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
Smoke test failed, please fix the following
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=md_plugin
    • > Notice in wp-content/plugins/mind-doodle-sitemap/pages/general.php+235
    Trying to access array offset on value of type bool
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=md_plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=md_plugin
    • > Notice in wp-content/plugins/mind-doodle-sitemap/index.php+286
    Undefined index: doodle_id
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=md_tasks
    • > Notice in wp-content/plugins/mind-doodle-sitemap/lib/dfx_oauth.php+131
    Undefined property: MDSM_DFX_API_OBJECT::$httpHeader
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=md_tasks
    • > Warning in wp-content/plugins/mind-doodle-sitemap/lib/dfx_oauth.php+131
    curl_setopt(): You must pass either an object or an array with the CURLOPT_HTTPHEADER argument
    • > GET request to /wp-admin/admin.php?page=md_tasks
    • > Warning in wp-content/plugins/mind-doodle-sitemap/pages/tasks/agile_summary.php+76
    sizeof(): Parameter must be an array or an object that implements Countable

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mind-doodle-sitemap/shortcode/shortcode.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=sitemap
    • > Javascript (severe) in unknown
    https://cdnjs.cloudflare.com/ajax/libs/fetch/3.0.0/fetch.min.js?ver=6.3.1 0:1113 Uncaught SyntaxError: Unexpected token 'export'

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

mind-doodle-sitemap/index.php 85% from 13 tests

"Mind Doodle Visual Sitemaps & Tasks" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mind-doodle-sitemap.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected16,975 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
CSS10135519,441
HTML216722,738
PHP193921112,501
JavaScript121891341,752
SVG301542
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity25.50
▷ Minimum class complexity18.00
▷ Maximum class complexity33.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1372.22%
▷ Protected methods00.00%
▷ Private methods527.78%
Functions75
▷ Named functions6890.67%
▷ Anonymous functions79.33%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.58MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/upgrade-icon-3.png15.71KB6.24KB▼ 60.28%
assets/images/upgrade-icon-2.png8.07KB3.86KB▼ 52.17%
assets/images/upgrade-icon-1.png24.26KB7.84KB▼ 67.69%
assets/images/wp-dash-2.png40.97KB4.29KB▼ 89.53%
assets/images/md-32x32.png3.61KB1.63KB▼ 55.01%