Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.37ms] Passed 4 tests
This is a short check of server-side resources used by ClickSend Lead Capture Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.89 ▲0.55 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.23 ▼6.21 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.78 ▼3.79 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.85 ▼12.01 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.21 ▲4.56 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for ClickSend Lead Capture Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲125 | 13.39 ▼1.17 | 9.39 ▲7.38 | 42.69 ▼4.26 |
Dashboard /wp-admin | 2,204 ▲30 | 5.60 ▲0.02 | 83.81 ▼4.42 | 39.90 ▼4.68 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.02 ▼0.01 | 36.19 ▼4.25 | 34.54 ▼5.60 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 23.50 ▲5.22 | 696.45 ▲75.05 | 63.44 ▼2.76 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.19 ▼0.04 | 110.30 ▲3.74 | 47.82 ▼0.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clicksend-lead-capture-form/trunk/views/form.php:20
- > PHP Notice
Undefined variable: errors in wp-content/plugins/clicksend-lead-capture-form/trunk/views/form.php on line 8
- > PHP Notice
Undefined variable: success_message in wp-content/plugins/clicksend-lead-capture-form/trunk/views/form.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/clicksend-lead-capture-form/trunk/views/configuration.php:2
- > PHP Notice
Undefined variable: success_message in wp-content/plugins/clicksend-lead-capture-form/views/form.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clicksend-lead-capture-form/views/form.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/clicksend-lead-capture-form/views/configuration.php:2
- > PHP Notice
Undefined variable: errors in wp-content/plugins/clicksend-lead-capture-form/views/form.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== clicksend-lead-capture-form ===
)
clicksend-lead-capture-form/clicksend-leadcapture.php 92% from 13 tests
"ClickSend Lead Capture Form" version 1.0.10'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: It is recommended to name the main PHP file as the plugin slug ("clicksend-lead-capture-form.php" instead of "clicksend-leadcapture.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,557 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 159 | 56 | 1,534 |
CSS | 2 | 1 | 0 | 22 |
JavaScript | 1 | 0 | 8 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 7.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 36 | 78.26% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.68MB with 0.59MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 37.02KB | 4.22KB | ▼ 88.60% |
trunk/assets/screenshot-1.png | 37.02KB | 4.22KB | ▼ 88.60% |
assets/screenshot-2.png | 312.18KB | 46.77KB | ▼ 85.02% |
trunk/assets/screenshot-2.png | 312.18KB | 46.77KB | ▼ 85.02% |