78% common-ninja-product-blobs-for-woocommerce

Code Review | Common Ninja: Product Blobs for WooCommerce

WordPress plugin Common Ninja: Product Blobs for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: common-ninja-prod...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.0
  • WordPress version: 6.3.1
  • First release: Jul 10, 2022
  • Latest release: Jul 10, 2022
  • Number of updates: 2
  • Update frequency: every 4.5 days
  • Top authors: CommonNinja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.16ms] Passed 4 tests

This is a short check of server-side resources used by Common Ninja: Product Blobs for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0544.86 ▲4.99
Dashboard /wp-admin3.36 ▲0.0552.02 ▲1.03
Posts /wp-admin/edit.php3.41 ▲0.0553.24 ▲6.48
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.51 ▼3.03
Media Library /wp-admin/upload.php3.28 ▲0.0534.67 ▼3.64
Product Blobs /wp-admin/admin.php?page=common-ninja-product-blobs-for-woocommerce3.2540.12

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Common Ninja: Product Blobs for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.35 ▲0.092.40 ▲0.5448.22 ▼2.04
Dashboard /wp-admin2,224 ▲445.65 ▲0.0290.74 ▼3.3640.95 ▼0.89
Posts /wp-admin/edit.php2,129 ▲261.99 ▲0.0040.06 ▲1.9434.67 ▼4.47
Add New Post /wp-admin/post-new.php1,558 ▲2117.83 ▼0.23609.38 ▼9.8665.84 ▼2.39
Media Library /wp-admin/upload.php1,420 ▲174.23 ▼0.00100.85 ▼0.3647.27 ▲1.57
Product Blobs /wp-admin/admin.php?page=common-ninja-product-blobs-for-woocommerce8151.9922.0228.18

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/common-ninja-product-blobs-for-woocommerce/commonninja/commonninja.init.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/common-ninja-product-blobs-for-woocommerce/common-ninja-product-blobs-for-woocommerce.php:18

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: plugin, visualization, blobs, products, content...

common-ninja-product-blobs-for-woocommerce/common-ninja-product-blobs-for-woocommerce.php 77% from 13 tests

The main PHP file in "Common Ninja: Product Blobs for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.2")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin218 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33729158
CSS25060

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions16
▷ Named functions00.00%
▷ Anonymous functions16100.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
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
_inc/commonninja.png2.92KB1.62KB▼ 44.44%