Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▲266.13ms] 50% from 4 tests
A check of server-side resources used by 4ECPS Web Forms
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 779.96ms on /wp-admin/options-general.php?page=ecps_options)
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 266.13ms on /wp-admin/options-general.php?page=ecps_options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.43 | 61.24 ▲10.16 |
Dashboard /wp-admin | 3.83 ▲0.39 | 874.32 ▲840.92 |
Posts /wp-admin/edit.php | 4.13 ▲0.46 | 784.88 ▲746.01 |
Add New Post /wp-admin/post-new.php | 6.39 ▼0.62 | 859.49 ▼397.46 |
Media Library /wp-admin/upload.php | 3.78 ▲0.46 | 731.00 ▲705.81 |
4ECPS /wp-admin/options-general.php?page=ecps_options | 3.75 | 779.96 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_cart_product |
wp_cart |
New WordPress options |
---|
ecps_version |
Browser metrics Passed 4 tests
A check of browser resources used by 4ECPS Web Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,067 ▲321 | 17.81 ▲2.22 | 37.68 ▲31.92 | 7.42 ▲5.36 |
Dashboard /wp-admin | 2,908 ▲47 | 6.32 ▲0.24 | 120.35 ▼18.61 | 159.64 ▼2.12 |
Posts /wp-admin/edit.php | 2,707 ▲13 | 3.28 ▲0.05 | 64.03 ▼0.09 | 142.48 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,731 ▼21 | 20.53 ▼1.17 | 420.05 ▼31.48 | 154.96 ▲2.05 |
Media Library /wp-admin/upload.php | 1,714 ▲19 | 5.59 ▲0.07 | 129.72 ▼8.02 | 179.12 ▼9.31 |
4ECPS /wp-admin/options-general.php?page=ecps_options | 1,236 | 2.75 | 55.92 | 117.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_cart_product
- wp_cart
- This plugin does not fully uninstall, leaving 1 option in the database
- ecps_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function ecps\\add_shortcode() in wp-content/plugins/4ecps-webforms/class-SCCollector.php:123
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_page_id() in wp-content/plugins/4ecps-webforms/recover-cart.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function ecps\\add_action() in wp-content/plugins/4ecps-webforms/landing-pages.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function ecps\\add_action() in wp-content/plugins/4ecps-webforms/linked-forms.php:495
- > PHP Fatal error
Uncaught Error: Call to undefined function ecps\\plugin_dir_path() in wp-content/plugins/4ecps-webforms/4ECPS.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/4ecps-webforms/partials/tinymce-editor.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is required in 4ecps-webforms/assets to your readme.txt
4ecps-webforms/4ECPS.php 92% from 13 tests
"4ECPS Web Forms" version 0.2.17's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("4ecps-webforms.php" instead of "4ECPS.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,306 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 384 | 103 | 2,023 |
JavaScript | 10 | 40 | 18 | 282 |
CSS | 1 | 0 | 7 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 9 | 34.62% |
▷ Public methods | 24 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.69% |
Functions | 73 | |
▷ Named functions | 67 | 91.78% |
▷ Anonymous functions | 6 | 8.22% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Screenshot1.png | 40.05KB | 13.61KB | ▼ 66.01% |
images/Screenshot3.png | 9.80KB | 4.39KB | ▼ 55.16% |
includes/icons/favicon.png | 2.08KB | 1.60KB | ▼ 22.96% |
images/favicon.png | 2.08KB | 1.60KB | ▼ 22.96% |
images/Screenshot2.png | 26.52KB | 9.78KB | ▼ 63.13% |