78% x-config-cim-starter-edition

Code Review | X-CONFIG CIM Starter Edition for WooCommerce

WordPress plugin X-CONFIG CIM Starter Edition for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: x-config-cim-star...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.37+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 27, 2018
  • Latest release: Aug 29, 2018
  • Number of updates: 25
  • Update frequency: every 0.2 days
  • Top authors: xioniag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /785 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by X-CONFIG CIM Starter Edition for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.38 ▲3.63
Dashboard /wp-admin3.33 ▲0.0344.26 ▼3.53
Posts /wp-admin/edit.php3.38 ▲0.0345.63 ▼3.88
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.11 ▲2.78
Media Library /wp-admin/upload.php3.25 ▲0.0337.70 ▲5.98
XConfig CIM SE /wp-admin/options-general.php?page=xconfig3.1927.70

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

X-CONFIG CIM Starter Edition for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.23 ▼1.082.11 ▲0.1439.55 ▼4.97
Dashboard /wp-admin2,210 ▲224.89 ▼0.01111.48 ▲1.1940.59 ▼1.74
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0239.07 ▼1.4334.45 ▼2.90
Add New Post /wp-admin/post-new.php1,537 ▲2323.27 ▲5.49681.82 ▼14.0958.64 ▼8.49
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.0299.84 ▲3.0042.77 ▼0.23
XConfig CIM SE /wp-admin/options-general.php?page=xconfig7862.0327.7826.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=xconfig
    • > Notice in wp-content/plugins/x-config-cim-starter-edition/X-Config-CIM-SE.php+100
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/x-config-cim-starter-edition/X-Config-CIM-SE.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: configuration, xioni, woocommerce, configurator, x-config...

x-config-cim-starter-edition/X-Config-CIM-SE.php 92% from 13 tests

This is the main PHP file of "X-CONFIG CIM Starter Edition for WooCommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("x-config-cim-starter-edition.php" instead of "X-Config-CIM-SE.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin403 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142361403

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin