84% microtango

Code Review | Microtango

WordPress plugin Microtango scored84%from 54 tests.

About plugin

  • Plugin page: microtango
  • Plugin version: 0.9.26
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Dec 11, 2019
  • Latest release: Jul 31, 2023
  • Number of updates: 75
  • Update frequency: every 17.7 days
  • Top authors: microtango (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.03ms] Passed 4 tests

A check of server-side resources used by Microtango
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.68 ▼6.46
Dashboard /wp-admin3.33 ▲0.0345.43 ▼3.65
Posts /wp-admin/edit.php3.38 ▲0.0348.47 ▲0.33
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.05 ▼10.33
Media Library /wp-admin/upload.php3.25 ▲0.0337.15 ▲1.46
Microtango /wp-admin/options-general.php?page=microtango3.2229.27

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Microtango: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.94 ▼0.019.53 ▲7.6335.53 ▼10.70
Dashboard /wp-admin2,210 ▲225.81 ▲0.91100.08 ▼8.5138.06 ▼5.04
Posts /wp-admin/edit.php2,096 ▲102.01 ▲0.0140.40 ▲4.3136.62 ▲1.65
Add New Post /wp-admin/post-new.php1,536 ▲2223.16 ▲5.60657.97 ▼18.5156.45 ▲2.38
Media Library /wp-admin/upload.php1,386 ▼24.22 ▲0.0192.13 ▼3.4639.15 ▼2.04
Microtango /wp-admin/options-general.php?page=microtango1,0482.1522.3035.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/microtango/microtango-init.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/microtango/microtango-settings-init.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/microtango/microtango-settings-init.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tanzschule, anmeldung, kurse, microtango, bersicht

microtango/microtango.php Passed 13 tests

The primary PHP file in "Microtango" version 0.9.26 is used by WordPress to initiate all plugin functionality
120 characters long description:
Microtango WP integration. Requires subscription from DMS. Will include the Microtango REST API to show your cloud data.

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
No dangerous file extensions were detected351 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36336351

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin