89% multi-level-pop-menu-addons

Code Review | Multi Level Pop Menu Elementor Addons

WordPress plugin Multi Level Pop Menu Elementor Addons scored89%from 54 tests.

About plugin

  • Plugin page: multi-level-pop-m...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9.3
  • WordPress version: 6.3.1
  • First release: Apr 16, 2022
  • Latest release: Apr 24, 2022
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: unikforce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /674 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Multi Level Pop Menu Elementor Addons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.39 ▼3.55
Dashboard /wp-admin3.35 ▲0.0547.50 ▼0.81
Posts /wp-admin/edit.php3.46 ▲0.1148.74 ▲0.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.33 ▼5.59
Media Library /wp-admin/upload.php3.27 ▲0.0532.86 ▼0.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Multi Level Pop Menu Elementor Addons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.22 ▼0.941.93 ▲0.2941.54 ▼2.58
Dashboard /wp-admin2,221 ▲335.76 ▲0.93105.93 ▲3.3941.16 ▼3.10
Posts /wp-admin/edit.php2,106 ▲172.07 ▲0.0541.80 ▲5.4436.11 ▲0.29
Add New Post /wp-admin/post-new.php1,549 ▲3023.38 ▲0.07599.25 ▼8.6549.24 ▼7.24
Media Library /wp-admin/upload.php1,403 ▲214.22 ▲0.0399.70 ▲0.1744.70 ▼0.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: wp menu addons, wordpress builder, wp elementor addon, elementor addons

multi-level-pop-menu-addons/index.php 69% from 13 tests

"Multi Level Pop Menu Elementor Addons" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("multi-level-pop-menu-addons.php" instead of "index.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.2")

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
Good job! No executable or dangerous file extensions detected875 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP482153628
CSS51810140
JavaScript291751
SVG30040
Sass11015
Markdown1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.67
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods25
▷ Static methods14.00%
▷ Public methods2288.00%
▷ Protected methods28.00%
▷ Private methods14.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin