10% genesis-nav-menu-amplified

Code Review | Genesis Nav Menu Amplified

WordPress plugin Genesis Nav Menu Amplified scored10%from 54 tests.

About plugin

  • Plugin page: genesis-nav-menu-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: May 13, 2011
  • Latest release: Mar 20, 2012
  • Number of updates: 12
  • Update frequency: every 26.0 days
  • Top authors: Nick_theGeek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /9,752 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_theme_data is deprecated since version 3.4.0! Use wp_get_theme() instead.

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.57ms] Passed 4 tests

An overview of server-side resources used by Genesis Nav Menu Amplified
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.85 ▼7.54
Dashboard /wp-admin3.31 ▲0.0046.85 ▼3.26
Posts /wp-admin/edit.php3.36 ▲0.0043.91 ▼7.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.27 ▼16.26
Media Library /wp-admin/upload.php3.23 ▲0.0035.53 ▲1.75

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

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

Browser metrics Passed 4 tests

Genesis Nav Menu Amplified: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.491.71 ▼0.2143.66 ▼7.16
Dashboard /wp-admin2,209 ▲214.85 ▼1.05102.75 ▼7.7639.41 ▼8.95
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0338.36 ▼0.0232.26 ▼4.10
Add New Post /wp-admin/post-new.php1,533 ▼1023.15 ▲4.87650.00 ▼2.2864.29 ▲9.77
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0294.53 ▼3.9143.63 ▼0.51

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/genesis-nav-menu-amplified/plugin.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-nav-menu-amplified/admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-nav-menu-amplified/structure.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === genesis-nav-menu-amplified === )
You can look at the official readme.txt

genesis-nav-menu-amplified/plugin.php 92% from 13 tests

The main PHP script in "Genesis Nav Menu Amplified" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("genesis-nav-menu-amplified.php" instead of "plugin.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
No dangerous file extensions were detected409 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP314084409

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected