72% css-menumaker

Code Review | MenuMaker Lite

WordPress plugin MenuMaker Lite scored 72% from 54 tests.

About plugin

  • Plugin page: css-menumaker
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2014
  • Latest release: Aug 17, 2014
  • Number of updates: 6
  • Update frequency: every 6.0 days
  • Top authors: cssmenumaker (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

40+ active / 8,158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲2.44ms] Passed 4 tests

Analyzing server-side resources used by MenuMaker Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.83 ▲7.81
Dashboard /wp-admin3.36 ▲0.0554.96 ▲8.80
Posts /wp-admin/edit.php3.40 ▲0.0550.04 ▲2.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.23 ▼9.58
Media Library /wp-admin/upload.php3.28 ▲0.0550.36 ▲15.60
Help /wp-admin/edit.php?post_type=cssmenu&page=cssmenu-help3.2733.68
All Menus /wp-admin/edit.php?post_type=cssmenu3.3235.76
Add New /wp-admin/post-new.php?post_type=cssmenu3.3141.53

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_cssmenu_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

MenuMaker Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲12214.74 ▲0.361.75 ▲0.0843.74 ▲4.12
Dashboard /wp-admin2,258 ▲694.86 ▼0.05113.20 ▲1.4844.43 ▲2.43
Posts /wp-admin/edit.php2,141 ▲522.06 ▲0.0635.00 ▼6.4432.80 ▼2.40
Add New Post /wp-admin/post-new.php1,570 ▲4218.32 ▼0.15617.33 ▼13.8857.78 ▲8.85
Media Library /wp-admin/upload.php1,443 ▲644.16 ▼0.07118.83 ▲20.4546.96 ▲1.67
Help /wp-admin/edit.php?post_type=cssmenu&page=cssmenu-help8192.0323.9026.71
All Menus /wp-admin/edit.php?post_type=cssmenu1,1221.9629.6930.59
Add New /wp-admin/post-new.php?post_type=cssmenu1,5992.5554.3454.25

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 does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_cssmenu_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/css-menumaker/builder_settings.php
  • 9× 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/css-menumaker/cssmenumaker_widget.php:4
    • > PHP Notice
      Undefined index: selected in wp-content/plugins/css-menumaker/css/dynamic.css.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/css-menumaker/scripts/dynamic.js.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/css-menumaker/walker.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/css-menumaker/cssmenumaker_post_type.php:3
    • > PHP Notice
      Undefined index: selected in wp-content/plugins/css-menumaker/scripts/dynamic.js.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/css-menumaker/css/dynamic.css.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/css-menumaker/single-cssmenu.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/css-menumaker/cssmenumaker.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cssmenu
    • > Network (severe)
    wp-content/plugins/cssmenumaker/css/menu_styles.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cssmenu
    • > Network (severe)
    wp-content/plugins/cssmenumaker/scripts/spectrum/spectrum.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cssmenu
    • > Network (severe)
    wp-content/plugins/cssmenumaker/css/styles.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cssmenu
    • > Network (severe)
    wp-content/plugins/cssmenumaker/scripts/magnific/magnific-popup.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cssmenu
    • > Network (severe)
    wp-content/plugins/cssmenumaker/scripts/structure.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cssmenu
    • > Network (severe)
    wp-content/plugins/cssmenumaker/scripts/builder.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cssmenu
    • > Network (severe)
    wp-content/plugins/cssmenumaker/scripts/less.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cssmenu
    • > Network (severe)
    wp-content/plugins/cssmenumaker/scripts/spectrum/spectrum.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cssmenu
    • > Network (severe)
    wp-content/plugins/cssmenumaker/scripts/magnific/jquery.magnific-popup.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: drop down menu, navigation, responsive menu, menu

css-menumaker/cssmenumaker.php 92% from 13 tests

The main PHP file in "MenuMaker Lite" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("css-menumaker.php" instead of "cssmenumaker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin5,048 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript68464803,476
CSS412439966
PHP814185602
JSON4004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.50
▷ Minimum class complexity3.00
▷ Maximum class complexity14.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.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
12 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
menus/213/thumbnail/css_menu_thumb.png18.95KB5.69KB▼ 69.95%
images/select_arrow_transparent.png1.08KB0.21KB▼ 80.47%
menus/311/thumbnail/css_menu_thumb.png3.73KB2.31KB▼ 38.02%
images/icon_select.png1.14KB0.28KB▼ 75.54%
images/premium_banner.png11.75KB2.92KB▼ 75.12%