84% qqworld-woocommerce-assistant-lite

Code Review | QQWorld Woocommerce助手精简版

WordPress plugin QQWorld Woocommerce助手精简版 scored 84% from 54 tests.

About plugin

  • Plugin page: qqworld-woocommer...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: May 4, 2016
  • Latest release: Feb 14, 2017
  • Number of updates: 5
  • Update frequency: every 57.2 days
  • Top authors: qqworld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.47ms] Passed 4 tests

This is a short check of server-side resources used by QQWorld Woocommerce助手精简版
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.17 ▼6.20
Dashboard /wp-admin3.44 ▲0.1446.02 ▲0.78
Posts /wp-admin/edit.php3.55 ▲0.2047.58 ▲0.91
Add New Post /wp-admin/post-new.php6.04 ▲0.1585.19 ▼13.37
Media Library /wp-admin/upload.php3.36 ▲0.1341.76 ▲8.51
WooCommerce Assistant /wp-admin/admin.php?page=qqworld-woocommerce-assistant3.3331.59
Brand Taxonomy /wp-admin/admin.php?page=qqworld-woocommerce-assistant-brand-taxonomy3.3332.83
Shipping Status /wp-admin/admin.php?page=qqworld-woocommerce-assistant-shipping-status3.3329.88

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for QQWorld Woocommerce助手精简版
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11213.21 ▼1.381.87 ▲0.0641.60 ▼3.13
Dashboard /wp-admin2,239 ▲514.89 ▲0.00109.90 ▼0.1538.99 ▼3.21
Posts /wp-admin/edit.php2,122 ▲302.05 ▲0.0538.65 ▲2.5237.80 ▲7.55
Add New Post /wp-admin/post-new.php1,549 ▲1617.90 ▼5.09645.94 ▲20.5433.73 ▼20.49
Media Library /wp-admin/upload.php1,421 ▲334.28 ▲0.0595.76 ▼3.3844.12 ▲0.46
WooCommerce Assistant /wp-admin/admin.php?page=qqworld-woocommerce-assistant9381.9935.0932.70
Brand Taxonomy /wp-admin/admin.php?page=qqworld-woocommerce-assistant-brand-taxonomy8481.9324.3628.22
Shipping Status /wp-admin/admin.php?page=qqworld-woocommerce-assistant-shipping-status8511.9326.0925.87

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function qqworld\\plugin_dir_url() in wp-content/plugins/qqworld-woocommerce-assistant-lite/qawc.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: china, speed

qqworld-woocommerce-assistant-lite/qawc.php 85% from 13 tests

The principal PHP file in "QQWorld Woocommerce助手精简版" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qqworld-woocommerce-assistant-lite.php" instead of "qawc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,074 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP76813431
CSS1105289
PO File2300694258
JavaScript2231096

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods3494.44%
▷ Protected methods12.78%
▷ Private methods12.78%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
5 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/banner-772x250.png52.78KB52.15KB▼ 1.19%
images/extensions/brand-taxonomy.png8.18KB8.15KB0.41%
images/extensions/chinization.png7.71KB7.62KB▼ 1.23%
images/extensions/shipping-status.png8.45KB8.45KB0.05%
images/extensions/logistics-query.png10.40KB10.40KB0.03%