83% add-to-menus-lite

Code Review | Add To Menus Lite

WordPress plugin Add To Menus Lite scored 83% from 54 tests.

About plugin

  • Plugin page: add-to-menus-lite
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 18, 2016
  • Latest release: May 21, 2016
  • Number of updates: 20
  • Update frequency: every 2.3 days
  • Top authors: ravisakya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,907 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.67ms] Passed 4 tests

This is a short check of server-side resources used by Add To Menus Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.01 ▼6.87
Dashboard /wp-admin3.45 ▲0.1453.63 ▲2.85
Posts /wp-admin/edit.php3.56 ▲0.2047.78 ▲0.59
Add New Post /wp-admin/post-new.php6.03 ▲0.1486.90 ▼11.23
Media Library /wp-admin/upload.php3.37 ▲0.1457.37 ▲23.70

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add To Menus Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.61 ▼0.791.81 ▲0.0639.53 ▼5.57
Dashboard /wp-admin2,215 ▲305.88 ▼0.02104.52 ▼9.8036.19 ▼6.40
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0335.85 ▲1.4630.75 ▼3.52
Add New Post /wp-admin/post-new.php1,693 ▲17322.45 ▼0.56732.97 ▲54.9852.86 ▲3.18
Media Library /wp-admin/upload.php1,394 ▲124.18 ▼0.05103.78 ▲4.0240.71 ▼2.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× 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/add-to-menus-lite/index.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/add-to-menus-lite/custom_walker.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/add-to-menus-lite/class.Walker_Nav_Menu_Edit.php:15

User-side errors Passed 1 test

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


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in add-to-menus-lite/assets to your readme.txt
The official readme.txt is a good inspiration

add-to-menus-lite/index.php 85% from 13 tests

This is the main PHP file of "Add To Menus Lite" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-to-menus-lite.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,103 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity33.67
▷ Minimum class complexity5.00
▷ Maximum class complexity76.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin