78% amathia

Code Review | Amathia: Accessible Dropdown Menus

WordPress plugin Amathia: Accessible Dropdown Menus scored78%from 54 tests.

About plugin

  • Plugin page: amathia
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: May 26, 2020
  • Latest release: Aug 7, 2023
  • Number of updates: 20
  • Update frequency: every 58.4 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,292 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.79ms] Passed 4 tests

A check of server-side resources used by Amathia: Accessible Dropdown Menus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0252.40 ▲7.89
Dashboard /wp-admin3.36 ▲0.0550.93 ▼3.67
Posts /wp-admin/edit.php3.41 ▲0.0552.46 ▲2.54
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.54 ▼10.23
Media Library /wp-admin/upload.php3.28 ▲0.0543.28 ▲4.22

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Amathia: Accessible Dropdown Menus
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3414.05 ▼0.542.48 ▲0.3037.59 ▼12.97
Dashboard /wp-admin2,202 ▲255.62 ▼0.0195.98 ▼2.6342.91 ▼1.06
Posts /wp-admin/edit.php2,107 ▲41.95 ▼0.0339.83 ▼1.6436.67 ▼0.64
Add New Post /wp-admin/post-new.php1,529 ▲322.87 ▼0.16727.24 ▲2.1654.57 ▼3.56
Media Library /wp-admin/upload.php1,401 ▲14.18 ▼0.03101.48 ▼8.5842.64 ▼4.42
Amathia /wp-admin/amathia.php260.420.1015.45

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 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 50% 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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amathia/amathia-css.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/amathia/amathia.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amathia/amathia-admin-settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/amathia/amathia-nav-menu.php:52

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/amathia.php
    • > Network (severe)
    wp-admin/amathia.php - 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: a11y, dropdown menus, navigation menus, accessibility

amathia/amathia.php 92% from 13 tests

The principal PHP file in "Amathia: Accessible Dropdown Menus" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/lang/")

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 detected313 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP590126283
JavaScript114730

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin