62% wp-simplemind-map

Code Review | WP SimpleMind Map

WordPress plugin WP SimpleMind Map scored 62% from 54 tests.

About plugin

  • Plugin page: wp-simplemind-map
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 6, 2020
  • Latest release: Jun 11, 2021
  • Number of updates: 24
  • Update frequency: every 12.9 days
  • Top authors: telicom (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

90+ active / 1,519 total downloads

Benchmarks

Plugin footprint 65% 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.21MB] [CPU: ▼4.83ms] Passed 4 tests

Server-side resources used by WP SimpleMind Map
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1940.51 ▼1.08
Dashboard /wp-admin3.56 ▲0.2646.77 ▼6.27
Posts /wp-admin/edit.php3.61 ▲0.2649.96 ▼6.35
Add New Post /wp-admin/post-new.php6.10 ▲0.2187.32 ▼5.61
Media Library /wp-admin/upload.php3.42 ▲0.1938.28 ▲3.02
Mind Map /wp-admin/admin.php?page=wp-simplemind-map3.4734.95
Upgrade to plus /wp-admin/admin.php?page=upgrade-to-pro3.4032.90
Settings /wp-admin/admin.php?page=wp-simple-mind-map-settings3.4131.91
License /wp-admin/admin.php?page=wp-simple-mind-map-license3.4034.08

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 69 new files
Database: 1 new table, 9 new options
New tables
wp_mind_map
New WordPress options
widget_recent-posts
theysaidso_admin_options
version
smm_plugin_version
smdmap-level
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP SimpleMind Map
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲21013.96 ▼0.425.71 ▲3.7443.27 ▼1.16
Dashboard /wp-admin2,265 ▲745.27 ▼0.63116.23 ▲3.8340.46 ▼6.12
Posts /wp-admin/edit.php2,149 ▲572.17 ▲0.1742.30 ▲5.7835.62 ▼0.78
Add New Post /wp-admin/post-new.php1,570 ▲3623.46 ▲0.40661.96 ▼14.3835.64 ▼17.50
Media Library /wp-admin/upload.php1,441 ▲564.57 ▲0.3698.83 ▼8.4943.01 ▼2.69
Mind Map /wp-admin/admin.php?page=wp-simplemind-map1,2092.3136.6447.98
Upgrade to plus /wp-admin/admin.php?page=upgrade-to-pro8701.9727.6227.61
Settings /wp-admin/admin.php?page=wp-simple-mind-map-settings8931.9626.1429.57
License /wp-admin/admin.php?page=wp-simple-mind-map-license9031.9727.7331.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_mind_map
  • Zombie WordPress options were found after uninstall: 9 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • smdmap-level
    • widget_recent-posts
    • can_compress_scripts
    • version
    • smm_plugin_version
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-simple-mind-map-settings
    • > Notice in wp-content/plugins/wp-simplemind-map/view/admin-simple-mind-settings.php+35
    Trying to access array offset on value of type bool
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-simple-mind-map-settings
    • > Notice in wp-content/plugins/wp-simplemind-map/view/admin-simple-mind-settings.php+35
    Trying to access array offset on value of type null

SRP 0% from 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 following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-simplemind-map/view/_upgrade.php
    • > /wp-content/plugins/wp-simplemind-map/view/_support.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-simplemind-map/view/admin-simple-mind-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: mind map, telicom, workflow, simplemind map, diagram

wp-simplemind-map/app.php 92% from 13 tests

Analyzing the main PHP file in "WP SimpleMind Map" version 2.1.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-simplemind-map.php" instead of "app.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
There were no executable files found in this plugin17,371 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
CSS7702812,635
PHP377117462,322
JavaScript92882241,828
SVG100565
JSON30021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.90
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes21
▷ Abstract classes314.29%
▷ Concrete classes1885.71%
▷ Final classes00.00%
Methods180
▷ Static methods3117.22%
▷ Public methods14077.78%
▷ Protected methods3821.11%
▷ Private methods21.11%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin