72% aumenu

Code Review | AuMenu

WordPress plugin AuMenu scored72%from 54 tests.

About plugin

  • Plugin page: aumenu
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-4.8.2
  • WordPress version: 6.3.1
  • First release: May 26, 2016
  • Latest release: Oct 3, 2017
  • Number of updates: 25
  • Update frequency: every 22.3 days
  • Top authors: atelierhyper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼7.23ms] Passed 4 tests

An overview of server-side resources used by AuMenu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.25 ▲5.86
Dashboard /wp-admin3.37 ▲0.0754.41 ▲3.89
Posts /wp-admin/edit.php3.47 ▲0.1155.36 ▲4.56
Add New Post /wp-admin/post-new.php3.22 ▼2.6743.36 ▼43.21
Media Library /wp-admin/upload.php3.29 ▲0.0744.08 ▲8.26
All Page /wp-admin/edit.php?post_type=aumenu3.3242.12
Add New /wp-admin/post-new.php?post_type=aumenu3.1536.55

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_wp_widget_aumenu
theysaidso_admin_options

Browser metrics Passed 4 tests

AuMenu: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19213.51 ▼1.077.92 ▲6.1242.84 ▼2.64
Dashboard /wp-admin2,245 ▲685.62 ▼0.0390.32 ▼0.1341.08 ▲4.06
Posts /wp-admin/edit.php2,150 ▲502.04 ▼0.0140.03 ▲4.5036.83 ▲2.50
Add New Post /wp-admin/post-new.php1,569 ▲2417.77 ▼5.43672.42 ▲55.6152.58 ▲1.49
Media Library /wp-admin/upload.php1,450 ▲504.20 ▼0.16101.64 ▼12.0845.95 ▼3.95
All Page /wp-admin/edit.php?post_type=aumenu1,1142.0234.7732.68
Add New /wp-admin/post-new.php?post_type=aumenu2,2657.72206.3294.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_wp_widget_aumenu
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=aumenu
    • > Notice in wp-content/plugins/aumenu/aumenu.php+367
    Undefined index: aumenu_nonce

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/aumenu/images/beer_default.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/aumenu/templates/aumenu.beer.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aumenu/aumenu_admin.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/aumenu/templates/single.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/aumenu/templates/aumenu.foods.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/aumenu/templates/aumenu.beers.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/aumenu/templates/aumenu.bottles.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aumenu/aumenu.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/aumenu/templates/aumenu.taps.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aumenu/widget/aumenu_widget.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: bire, aumenu, bires, beers, ft...

aumenu/aumenu.php 92% from 13 tests

The entry point to "AuMenu" version 1.1.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,313 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP112221511,368
CSS1314101851
PO File1212554
SVG10122
JavaScript13018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity46.00
▷ Minimum class complexity4.00
▷ Maximum class complexity88.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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