90% nextplugins-woocommerce-ask-question-tab

Code Review | NextPlugins WooCommerce Ask Question Tab

WordPress plugin NextPlugins WooCommerce Ask Question Tab scored90%from 54 tests.

About plugin

  • Plugin page: nextplugins-wooco...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2017
  • Latest release: Feb 16, 2023
  • Number of updates: 6
  • Update frequency: every 347.5 days
  • Top authors: nextplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,091 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.23ms] Passed 4 tests

An overview of server-side resources used by NextPlugins WooCommerce Ask Question Tab
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.82 ▼5.02
Dashboard /wp-admin3.34 ▲0.0450.47 ▼4.02
Posts /wp-admin/edit.php3.39 ▲0.0351.03 ▼9.31
Add New Post /wp-admin/post-new.php5.92 ▲0.03118.39 ▲14.77
Media Library /wp-admin/upload.php3.26 ▲0.0341.00 ▲1.45

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for NextPlugins WooCommerce Ask Question Tab
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.13 ▼0.081.75 ▼0.0144.46 ▼1.03
Dashboard /wp-admin2,204 ▲275.62 ▲0.0789.97 ▼6.7542.96 ▼2.34
Posts /wp-admin/edit.php2,106 ▲61.96 ▼0.0740.25 ▼2.2437.11 ▲4.32
Add New Post /wp-admin/post-new.php1,537 ▲923.19 ▲0.14614.36 ▼56.3647.47 ▼2.07
Media Library /wp-admin/upload.php1,406 ▲64.23 ▼0.01104.71 ▼11.2742.64 ▼7.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: woocommerce tab, ask question mail, woocommerce ask question, ask question, woocommerce...

nextplugins-woocommerce-ask-question-tab/nextplugins-woocommerce-ask-question-tab.php Passed 13 tests

The main PHP script in "NextPlugins WooCommerce Ask Question Tab" version 1.0.4 is automatically included on every request by WordPress
43 characters long description:
Simple form to send question about product.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected468 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP77879468

PHP code Passed 2 tests

An short overview of 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.36
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods646.15%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin