84% munk-sites

Code Review | Ready to use Gutenberg and Elementor Templates - Munk Sites

WordPress plugin Ready to use Gutenberg and Elementor Templates - Munk Sites scored 84% from 54 tests.

About plugin

  • Plugin page: munk-sites
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 29, 2019
  • Latest release: Jul 27, 2021
  • Number of updates: 9
  • Update frequency: every 71.8 days
  • Top authors: metricthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 9,007 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.89MB] [CPU: ▼0.90ms] Passed 4 tests

A check of server-side resources used by Ready to use Gutenberg and Elementor Templates - Munk Sites
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.35 ▲0.8942.90 ▼3.50
Dashboard /wp-admin4.20 ▲0.8951.76 ▲0.75
Posts /wp-admin/edit.php4.31 ▲0.9555.47 ▲6.99
Add New Post /wp-admin/post-new.php6.78 ▲0.8990.68 ▼6.05
Media Library /wp-admin/upload.php4.12 ▲0.8942.44 ▲5.20
Munk Sites /wp-admin/themes.php?page=munk-sites4.2939.00

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ready to use Gutenberg and Elementor Templates - Munk Sites
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.19 ▼1.181.96 ▼0.0537.68 ▼10.57
Dashboard /wp-admin2,210 ▲194.85 ▼1.03106.00 ▼6.0937.77 ▼9.55
Posts /wp-admin/edit.php2,093 ▲222.00 ▼0.0535.32 ▼0.9433.09 ▲0.15
Add New Post /wp-admin/post-new.php1,517 ▼217.64 ▼5.65693.26 ▲40.5350.29 ▼10.08
Media Library /wp-admin/upload.php1,389 ▲14.22 ▼0.05104.32 ▲2.0547.01 ▲3.89
Munk Sites /wp-admin/themes.php?page=munk-sites12,3634.76173.22104.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/munk-sites/munk-sites.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/munk-sites/templates/dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Munk_Sites_Importer_Logger' not found in wp-content/plugins/munk-sites/importer/class-logger-serversentevents.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'TGM_Plugin_Activation' not found in wp-content/plugins/munk-sites/classess/class-plugin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/munk-sites/templates/header.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/munk-sites/importer/class-wxr-importer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/munk-sites/templates/modal.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/munk-sites/classess/class-tgm.php:2100
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/munk-sites/templates/preview.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: elementor, munk, beaver builder, demo import, starter sites...

munk-sites/munk-sites.php 92% from 13 tests

The main PHP script in "Ready to use Gutenberg and Elementor Templates - Munk Sites" version 1.0.7 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected10,020 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP161,2252,5864,744
JavaScript36069982,651
CSS765711,288
Sass2614822
SVG6123515

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity51.18
▷ Minimum class complexity1.00
▷ Maximum class complexity263.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods229
▷ Static methods135.68%
▷ Public methods16371.18%
▷ Protected methods6227.07%
▷ Private methods41.75%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin