90% brickslabs-bricks-navigator

Code Review | Bricks Navigator

WordPress plugin Bricks Navigator scored90%from 54 tests.

About plugin

  • Plugin page: brickslabs-bricks...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.5.0
  • WordPress version: 6.3.1
  • First release: May 28, 2022
  • Latest release: Nov 10, 2023
  • Number of updates: 7
  • Update frequency: every 75.9 days
  • Top authors: srikat (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

3,000+ active /7,635 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.96ms] Passed 4 tests

A check of server-side resources used by Bricks Navigator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.50 ▼6.91
Dashboard /wp-admin3.34 ▲0.0441.58 ▼5.60
Posts /wp-admin/edit.php3.40 ▲0.0448.99 ▼1.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.49 ▼10.16
Media Library /wp-admin/upload.php3.27 ▲0.0437.50 ▲5.70
Bricks Navigator /wp-admin/admin.php?page=brickslabs-bricks-navigator3.2331.77

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bricks Navigator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.24 ▼0.111.77 ▼0.0439.80 ▼3.89
Dashboard /wp-admin2,198 ▲215.59 ▼0.0896.97 ▼3.6744.06 ▲0.02
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0637.32 ▲1.3936.68 ▲3.47
Add New Post /wp-admin/post-new.php1,526 ▼323.45 ▲0.21680.42 ▲70.7760.96 ▲13.38
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.0099.29 ▼1.1341.94 ▲0.64
Bricks Navigator /wp-admin/admin.php?page=brickslabs-bricks-navigator8301.9924.6628.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: bricks, bricks builder, admin bar

brickslabs-bricks-navigator/brickslabs-bricks-navigator.php Passed 13 tests

The primary PHP file in "Bricks Navigator" version 1.0.2 is used by WordPress to initiate all plugin functionality
70 characters long description:
Adds quick links in the WordPress admin bar for users of Bricks theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,310 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP91182051,226
CSS1221784

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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
Namespaces0
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%
Functions15
▷ Named functions1066.67%
▷ Anonymous functions533.33%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/bricks-logo.png0.70KB0.53KB▼ 23.50%