84% mindcat

Code Review | MindCat

WordPress plugin MindCat scored84%from 54 tests.

About plugin

  • Plugin page: mindcat
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2014
  • Latest release: Mar 2, 2016
  • Number of updates: 14
  • Update frequency: every 54.8 days
  • Top authors: bastho (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /5,525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.87ms] Passed 4 tests

A check of server-side resources used by MindCat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.48 ▼9.78
Dashboard /wp-admin3.37 ▲0.0646.54 ▼0.08
Posts /wp-admin/edit.php3.42 ▲0.0647.68 ▼1.11
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.64 ▲8.93
Media Library /wp-admin/upload.php3.29 ▲0.0630.81 ▼0.49

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_mindcat_widget

Browser metrics Passed 4 tests

A check of browser resources used by MindCat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.27 ▼1.381.78 ▼0.1840.45 ▼5.62
Dashboard /wp-admin2,206 ▲156.07 ▲1.18105.61 ▼1.1341.16 ▲1.02
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0540.08 ▲3.3134.29 ▼1.03
Add New Post /wp-admin/post-new.php1,542 ▲2818.22 ▲0.58631.44 ▼50.6853.03 ▲0.07
Media Library /wp-admin/upload.php1,382 ▼64.22 ▼0.0398.13 ▲3.3242.34 ▲0.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_mindcat_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/mindcat/mindcat.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
4 plugin tags: category, mindmap, widget, categories

mindcat/mindcat.php Passed 13 tests

Analyzing the main PHP file in "MindCat" version 1.1.3
50 characters long description:
Displays categories and subcategories as a mindmap

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected425 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP12818240
CSS24080
JavaScript225460
PO File1141445

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity25.00
▷ Minimum class complexity20.00
▷ Maximum class complexity30.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin