Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.95ms] Passed 4 tests
A check of server-side resources used by Public Form Leads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.45 ▼4.27 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.79 ▼8.72 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.07 ▲3.52 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 92.73 ▼2.32 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.98 ▲3.94 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Illegal file modification detected: 1 file (1.35KB) outside of "wp-content/plugins/public-form-leads/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/template-page-marketing.php
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Public Form Leads: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲91 | 13.22 ▼1.18 | 1.96 ▼0.28 | 41.17 ▼4.60 |
Dashboard /wp-admin | 2,226 ▲38 | 5.88 ▲1.01 | 97.15 ▼22.34 | 38.31 ▼6.25 |
Posts /wp-admin/edit.php | 2,112 ▲26 | 2.02 ▼0.02 | 40.19 ▲6.80 | 36.46 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 23.21 ▼0.07 | 636.93 ▼69.39 | 52.68 ▼0.92 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.35 ▼0.04 | 97.28 ▼15.08 | 43.90 ▼2.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- ct_license_code
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/public-form-leads/inc/active-license.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/public-form-leads/templates/template-page-marketing.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/public-form-leads/included.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/public-form-leads/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/public-form-leads/inc/shortcode.php:189
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/public-form-leads/inc/cearte-page.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/public-form-leads/inc/create-single-form.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Active plugin Public Form Lead), #2 (Go Page Track Leads), #3 (select all sections and submit)
public-form-leads/index.php 92% from 13 tests
Analyzing the main PHP file in "Public Form Leads" version 1.0.2
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("public-form-leads.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected904 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 57 | 20 | 427 |
CSS | 1 | 52 | 0 | 298 |
JavaScript | 1 | 23 | 7 | 179 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 1.20MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/screen-shot-2.png | 448.39KB | 108.58KB | ▼ 75.78% |
inc/images/custom-1.png | 41.02KB | 7.59KB | ▼ 81.49% |
inc/images/custom-3.png | 36.51KB | 7.25KB | ▼ 80.15% |
inc/images/custom-2.png | 351.15KB | 23.41KB | ▼ 93.33% |
inc/images/screen-shot-1.png | 351.72KB | 79.53KB | ▼ 77.39% |