Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▲514.73ms] 50% from 4 tests
An overview of server-side resources used by 4ECPS Web Forms
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 777.60ms on /wp-admin/options-general.php?page=ecps_options)
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 514.73ms on /wp-admin/options-general.php?page=ecps_options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.57 | 58.39 ▲9.85 |
Dashboard /wp-admin | 4.12 ▲0.49 | 802.98 ▲731.23 |
Posts /wp-admin/edit.php | 4.24 ▲0.56 | 714.20 ▲660.19 |
Add New Post /wp-admin/post-new.php | 5.64 ▼0.50 | 865.51 ▲763.14 |
Media Library /wp-admin/upload.php | 4.05 ▲0.56 | 696.26 ▲657.66 |
4ECPS /wp-admin/options-general.php?page=ecps_options | 4.02 | 777.60 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_activedemand_access |
wp_cart |
wp_cart_product |
wp_activedemand_access_rule |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
ecps_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 4ECPS Web Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲121 | 13.57 ▼0.68 | 8.16 ▲6.38 | 45.19 ▲1.35 |
Dashboard /wp-admin | 2,206 ▲29 | 5.62 ▲0.08 | 89.63 ▼11.41 | 40.32 ▼6.01 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.07 ▲0.04 | 38.94 ▼1.80 | 31.92 ▼4.14 |
Add New Post /wp-admin/post-new.php | 1,714 ▲183 | 21.95 ▼1.54 | 702.75 ▼46.11 | 36.46 ▼15.95 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.23 ▼0.02 | 101.23 ▼16.31 | 43.83 ▼5.78 |
4ECPS /wp-admin/options-general.php?page=ecps_options | 921 | 1.74 | 25.85 | 26.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_cart_product
- wp_cart
- wp_activedemand_access
- wp_activedemand_access_rule
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- ecps_version
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function ecps\\add_action() in wp-content/plugins/4ecps-webforms/linked-forms.php:663
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/4ecps-webforms/partials/tinymce-editor.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function ecps\\plugin_dir_path() in wp-content/plugins/4ecps-webforms/4ECPS.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function ecps\\add_shortcode() in wp-content/plugins/4ecps-webforms/class-SCCollector.php:124
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: A description for screenshot #2 is missing in 4ecps-webforms/assets to your readme.txt
4ecps-webforms/4ECPS.php 92% from 13 tests
Analyzing the main PHP file in "4ECPS Web Forms" version 0.2.18
Please take the time to fix the following:
- Main file name: Name the main plugin file 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,160 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 535 | 107 | 2,875 |
JavaScript | 11 | 40 | 22 | 283 |
CSS | 2 | 0 | 7 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 86.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.62 |
▷ 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 | 70 | |
▷ Named functions | 64 | 91.43% |
▷ Anonymous functions | 6 | 8.57% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ActiveDEMAND-Transparent.png | 4.54KB | 2.86KB | ▼ 36.98% |
images/favicon.png | 2.08KB | 1.60KB | ▼ 22.96% |
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% |