94% fusion-extension-menu

Code Review | Fusion Page Builder : Extension - Menu

WordPress plugin Fusion Page Builder : Extension - Menu scored 94% from 53 tests.

About plugin

  • Plugin page: fusion-extension-...
  • Plugin version: 1.1.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.2.2
  • WordPress version: 5.8.1
  • First release: Aug 4, 2016
  • Latest release: Nov 26, 2019
  • Number of updates: 58
  • Update frequency: every 21.0 days
  • Top authors: agencydominion (100%)

Code review

53 tests

User reviews

1 review

Install metrics

600+ active / 11,167 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼358.54ms] Passed 4 tests

This is a short check of server-side resources used by Fusion Page Builder : Extension - Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0228.25 ▼4.70
Dashboard /wp-admin3.07 ▲0.0244.54 ▼1.48
Posts /wp-admin/edit.php3.12 ▲0.0243.74 ▼0.15
Add New Post /wp-admin/post-new.php5.43 ▲0.0091.25 ▼1,421.67
Media Library /wp-admin/upload.php3.01 ▲0.0134.35 ▼6.32

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Fusion Page Builder : Extension - Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7015.81 ▲0.328.53 ▲1.0946.64 ▲1.09
Dashboard /wp-admin2,950 ▲975.93 ▲0.07134.87 ▼11.64106.06 ▼0.77
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0066.23 ▲0.2179.14 ▼13.53
Add New Post /wp-admin/post-new.php1,651 ▼217.45 ▼1.25362.08 ▼0.76111.49 ▲3.92
Media Library /wp-admin/upload.php1,772 ▲34.99 ▼0.01154.56 ▲0.75118.62 ▼8.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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
Good news, no errors were detected

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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fusion-extension-menu/includes/extensions/menu.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-menu/fusion-extension-menu.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
Please take inspiration from this readme.txt

fusion-extension-menu/fusion-extension-menu.php Passed 13 tests

The main PHP script in "Fusion Page Builder : Extension - Menu" version 1.1.20 is automatically included on every request by WordPress
34 characters long description:
Menu Extension Package for Fusion.

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
No dangerous file extensions were detected845 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2117129457
CSS1127221
JavaScript31338167

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity22.67
▷ Minimum class complexity7.00
▷ Maximum class complexity35.00
Average method complexity5.06
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected