89% nimbbl-for-woocommerce

Code Review | Nimbbl

WordPress plugin Nimbbl scored89%from 54 tests.

About plugin

  • Plugin page: nimbbl-for-woocom...
  • Plugin version: 4.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 27, 2023
  • Latest release: Nov 7, 2023
  • Number of updates: 28
  • Update frequency: every 5.1 days
  • Top authors: nimbblplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼10.66ms] Passed 4 tests

Server-side resources used by Nimbbl
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1237.30 ▼8.98
Dashboard /wp-admin3.43 ▲0.0850.11 ▼16.75
Posts /wp-admin/edit.php3.54 ▲0.1846.71 ▼1.45
Add New Post /wp-admin/post-new.php6.01 ▲0.1286.31 ▼15.47
Media Library /wp-admin/upload.php3.35 ▲0.1237.04 ▼0.23

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nimbbl
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5214.14 ▼0.211.78 ▼0.2732.38 ▼11.97
Dashboard /wp-admin2,203 ▲315.51 ▼0.0787.87 ▼22.9437.19 ▲1.85
Posts /wp-admin/edit.php2,112 ▲121.94 ▼0.0736.56 ▼1.0837.18 ▼0.50
Add New Post /wp-admin/post-new.php1,372 ▼15417.13 ▼6.55537.43 ▼151.4831.33 ▼18.26
Media Library /wp-admin/upload.php1,408 ▲84.25 ▲0.05102.72 ▲1.8640.64 ▼2.85

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

nimbbl-for-woocommerce/nimbbl-woocommerce.php 85% from 13 tests

"Nimbbl" version 4.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nimbbl-for-woocommerce.php" instead of "nimbbl-woocommerce.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin587 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14715576
JavaScript10011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods2095.24%
▷ Protected methods14.76%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/nimbbl.png1.03KB1.03KB0.00%