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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.58 ▼6.58 |
Dashboard /wp-admin | 3.37 ▲0.02 | 53.20 ▼7.90 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.62 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 105.53 ▲3.09 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 19.00 ▲4.42 | 115.62 ▲113.77 | 44.16 ▲2.38 |
Dashboard /wp-admin | 2,230 ▲42 | 4.93 ▲0.04 | 103.79 ▲0.85 | 76.78 ▲36.23 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 1.99 ▲0.00 | 38.25 ▼3.40 | 36.52 ▼1.69 |
Add New Post /wp-admin/post-new.php | 6,399 ▲4,880 | 28.45 ▲4.96 | 947.24 ▲343.31 | 37.99 ▼23.24 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.19 ▼0.04 | 105.11 ▼1.86 | 73.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 1,032 | 216 | 5,189 |
PHP | 56 | 670 | 2,038 | 2,403 |
JavaScript | 22 | 105 | 9 | 1,417 |
PO File | 1 | 75 | 124 | 179 |
XML | 1 | 17 | 30 | 62 |
SVG | 5 | 21 | 0 | 40 |
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 code | 0.31 |
Average class complexity | 3.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 2 | 1.18% |
▷ Public methods | 126 | 74.12% |
▷ Protected methods | 43 | 25.29% |
▷ Private methods | 1 | 0.59% |
Functions | 12 | |
▷ Named functions | 7 | 58.33% |
▷ Anonymous functions | 5 | 41.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/5forestslogo.png | 25.15KB | 13.08KB | ▼ 48.01% |
assets/heroheader.png | 149.72KB | 95.01KB | ▼ 36.54% |
assets/c7icon.png | 1.75KB | 1.02KB | ▼ 42.13% |
assets/5forests-logo-horizontal.png | 3.04KB | 1.81KB | ▼ 40.51% |
assets/newslettertitle.png | 4.25KB | 2.88KB | ▼ 32.11% |