84% wp-commerce7

Code Review | Commerce7 for WordPress

WordPress plugin Commerce7 for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: wp-commerce7
  • Plugin version: 1.3.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 15, 2019
  • Latest release: Jul 13, 2023
  • Number of updates: 58
  • Update frequency: every 27.3 days
  • Top authors: michaelbourne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /5,616 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.57ms] Passed 4 tests

This is a short check of server-side resources used by Commerce7 for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.58 ▼6.58
Dashboard /wp-admin3.37 ▲0.0253.20 ▼7.90
Posts /wp-admin/edit.php3.42 ▲0.0651.62 ▲1.10
Add New Post /wp-admin/post-new.php5.98 ▲0.10105.53 ▲3.09
Media Library /wp-admin/upload.php3.29 ▲0.0641.74 ▲5.92

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 138 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
c7wp_activation
widget_theysaidso_widget
c7wp_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Commerce7 for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9119.00 ▲4.42115.62 ▲113.7744.16 ▲2.38
Dashboard /wp-admin2,230 ▲424.93 ▲0.04103.79 ▲0.8576.78 ▲36.23
Posts /wp-admin/edit.php2,113 ▲211.99 ▲0.0038.25 ▼3.4036.52 ▼1.69
Add New Post /wp-admin/post-new.php6,399 ▲4,88028.45 ▲4.96947.24 ▲343.3137.99 ▼23.24
Media Library /wp-admin/upload.php1,409 ▲214.19 ▼0.04105.11 ▼1.8673.03 ▲28.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • c7wp_settings
    • c7wp_activation
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% 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 fix the following
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      require_once(C7WP_ROOT/includes/elementor/elementor-legacy.php): failed to open stream: No such file or directory in wp-content/plugins/wp-commerce7/includes/elementor/load.php on line 21
    • > PHP Fatal error
      require_once(): Failed opening required 'C7WP_ROOT/includes/elementor/elementor-legacy.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-commerce7/includes/elementor/load.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/wp-commerce7/includes/themeco/cornerstone/shortcode.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-commerce7/includes/wordpress/load.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-commerce7/includes/yoast/load.php:20
    • > PHP Warning
      Use of undefined constant C7WP_ROOT - assumed 'C7WP_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-commerce7/includes/elementor/load.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-commerce7/includes/seopress/load.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/wp-commerce7/includes/beaverbuilder/legacy/beaver-c7wp.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/wp-commerce7/includes/beaverbuilder/legacy/includes/frontend.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-commerce7/includes/aioseo/load.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: commerce7

wp-commerce7/commerce7-for-wordpress.php 92% from 13 tests

This is the main PHP file of "Commerce7 for WordPress" version 1.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-commerce7.php" instead of "commerce7-for-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9,290 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
CSS181,0322165,189
PHP566702,0382,403
JavaScript2210591,417
PO File175124179
XML1173062
SVG521040

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity3.93
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods170
▷ Static methods21.18%
▷ Public methods12674.12%
▷ Protected methods4325.29%
▷ Private methods10.59%
Functions12
▷ Named functions758.33%
▷ Anonymous functions541.67%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.19MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/5forestslogo.png25.15KB13.08KB▼ 48.01%
assets/heroheader.png149.72KB95.01KB▼ 36.54%
assets/c7icon.png1.75KB1.02KB▼ 42.13%
assets/5forests-logo-horizontal.png3.04KB1.81KB▼ 40.51%
assets/newslettertitle.png4.25KB2.88KB▼ 32.11%