84% menu-item-extended-url

Code Review | Menu Item Extended URL

WordPress plugin Menu Item Extended URL scored84%from 54 tests.

About plugin

  • Plugin page: menu-item-extende...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 8, 2017
  • Latest release: Sep 8, 2017
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: PanychNET (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /639 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.37ms] Passed 4 tests

Analyzing server-side resources used by Menu Item Extended URL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.78 ▼2.02
Dashboard /wp-admin3.33 ▲0.0351.82 ▲0.06
Posts /wp-admin/edit.php3.38 ▲0.0254.47 ▲2.42
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.93 ▼20.06
Media Library /wp-admin/upload.php3.25 ▲0.0238.97 ▲0.53

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Menu Item Extended URL
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.181.88 ▼0.3444.22 ▼0.85
Dashboard /wp-admin2,203 ▲125.80 ▲0.9296.13 ▼9.0339.93 ▼6.52
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0833.80 ▼0.8831.77 ▼5.65
Add New Post /wp-admin/post-new.php1,514 ▼717.51 ▼5.64721.46 ▲51.5756.94 ▲2.77
Media Library /wp-admin/upload.php1,388 ▲34.10 ▼0.13110.07 ▼2.9546.76 ▼1.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/menu-item-extended-url/includes/class-walker-nav-menu-edit.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-item-extended-url/menu-item-extended-url.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: menu, nav, custom field, nav-menu, extend url...

menu-item-extended-url/menu-item-extended-url.php Passed 13 tests

The main PHP file in "Menu Item Extended URL" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
94 characters long description:
Allows to add additional parameters and/or fragment identifier (hashtag) to the menu item url.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected105 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP236155105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods555.56%
▷ Public methods777.78%
▷ Protected methods111.11%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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