90% block-navigation

Code Review | Block Navigation

WordPress plugin Block Navigation scored90%from 54 tests.

About plugin

  • Plugin page: block-navigation
  • Plugin version: 4.1.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Nov 1, 2018
  • Latest release: May 19, 2022
  • Number of updates: 60
  • Update frequency: every 21.6 days
  • Top authors: melonpan (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

6,000+ active /55,614 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.06ms] Passed 4 tests

An overview of server-side resources used by Block Navigation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.87 ▼3.30
Dashboard /wp-admin3.31 ▼0.0342.23 ▼12.34
Posts /wp-admin/edit.php3.36 ▲0.0146.11 ▼1.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.58 ▼6.62
Media Library /wp-admin/upload.php3.23 ▲0.0131.58 ▲0.64

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Block Navigation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.14 ▼0.121.60 ▼0.1042.15 ▲3.25
Dashboard /wp-admin2,192 ▲155.57 ▼0.0991.30 ▼8.1244.51 ▲1.81
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.1038.72 ▼3.3535.57 ▼4.83
Add New Post /wp-admin/post-new.php1,537 ▼223.46 ▲4.95615.96 ▲14.3954.37 ▼8.45
Media Library /wp-admin/upload.php1,400 ▲64.19 ▼0.1694.82 ▼14.1443.17 ▼7.72

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: blocks, gutenberg, drag-and-drop, editor, navigation

block-navigation/block-navigation.php Passed 13 tests

The primary PHP file in "Block Navigation" version 4.1.1 is used by WordPress to initiate all plugin functionality
56 characters long description:
Block Navigation sidebar panel for the new Block editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin47 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP161743
JavaScript10173
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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
Namespaces1
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected