84% bop-search-box-item-type-for-nav-menus

Code Review | Bop Search Box Item Type For Nav Menus

WordPress plugin Bop Search Box Item Type For Nav Menus scored 84% from 54 tests.

About plugin

  • Plugin page: bop-search-box-it...
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.8
  • WordPress version: 6.3.1
  • First release: Jan 10, 2015
  • Latest release: Jul 11, 2017
  • Number of updates: 34
  • Update frequency: every 27.1 days
  • Top authors: joe_bopper (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

2,000+ active / 41,647 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.79ms] Passed 4 tests

An overview of server-side resources used by Bop Search Box Item Type For Nav Menus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.22 ▼2.34
Dashboard /wp-admin3.33 ▲0.0243.83 ▼8.54
Posts /wp-admin/edit.php3.38 ▲0.0249.17 ▲5.64
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.67 ▼6.18
Media Library /wp-admin/upload.php3.25 ▲0.0235.93 ▲1.89

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Bop Search Box Item Type For Nav Menus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.061.57 ▼0.3142.32 ▼2.39
Dashboard /wp-admin2,209 ▲214.85 ▼0.0198.19 ▼7.7039.48 ▼2.82
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0538.99 ▲4.1535.11 ▲2.24
Add New Post /wp-admin/post-new.php1,533 ▲1923.07 ▲5.57604.82 ▼80.9647.10 ▼6.96
Media Library /wp-admin/upload.php1,382 ▼64.28 ▲0.0695.09 ▼7.5940.19 ▼8.87

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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 take a closer look at the following
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/plugin-keeping.php
    • > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/plugin.php
    • > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/init.php
    • > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/updates/1.5.0/update.php
    • > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/deactivate.php
    • > /wp-content/plugins/bop-search-box-item-type-for-nav-menus/uninstall.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 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
10 plugin tags: customizer, nav menu item type, nav menu, nav menus, navigation...

bop-search-box-item-type-for-nav-menus/init.php 85% from 13 tests

The main PHP file in "Bop Search Box Item Type For Nav Menus" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("bop-search-box-item-type-for-nav-menus.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin378 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6124273362
CSS10016

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions337.50%
▷ Anonymous functions562.50%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin