84% responsive-bold-navigation

Code Review | Responsive Bold Navigation

WordPress plugin Responsive Bold Navigation scored 84% from 54 tests.

About plugin

  • Plugin page: responsive-bold-n...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 30, 2017
  • Latest release: Apr 30, 2017
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: ferdousoly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 905 total downloads

Benchmarks

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.02MB] [CPU: ▼5.39ms] Passed 4 tests

Server-side resources used by Responsive Bold Navigation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.78 ▼0.15
Dashboard /wp-admin3.32 ▲0.0244.33 ▼3.48
Posts /wp-admin/edit.php3.37 ▲0.0247.18 ▼3.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.24 ▼14.65
Media Library /wp-admin/upload.php3.24 ▲0.0238.12 ▲6.25

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Bold Navigation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.17 ▼1.181.61 ▼0.3940.31 ▼6.27
Dashboard /wp-admin2,206 ▲185.83 ▲0.82104.46 ▼1.2839.00 ▼4.46
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0340.74 ▼0.1133.67 ▼0.42
Add New Post /wp-admin/post-new.php1,536 ▲323.64 ▲0.43632.28 ▼24.7353.14 ▼2.07
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0494.04 ▼10.1142.43 ▼1.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/responsive-bold-navigation/main.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_nav_menus() in wp-content/plugins/responsive-bold-navigation/walker.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt might help

responsive-bold-navigation/main.php 92% from 13 tests

The entry point to "Responsive Bold Navigation" version 2.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-bold-navigation.php" instead of "main.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 detected9,152 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS316322,890
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP2192565

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity14.00
▷ Minimum method complexity14.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin