Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.63MB] [CPU: ▼16.85ms] Passed 4 tests
This is a short check of server-side resources used by Lead Gen Landing Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.87 ▼2.76 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.98 ▼8.11 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 49.41 ▲3.19 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.67 | 36.58 ▼56.58 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.33 ▲0.04 |
Page Lead data /wp-admin/edit.php?post_type=funlhtmllandingpages&page=funlleadform | 3.25 | 32.07 |
Landing Page /wp-admin/edit.php?post_type=funlhtmllandingpages | 3.32 | 40.07 |
Add New /wp-admin/post-new.php?post_type=funlhtmllandingpages | 3.32 | 42.32 |
Server storage [IO: ▲3.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_funl_forms |
wp_funlhtmllandingpages_pages |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Lead Gen Landing Page: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 15.79 ▲1.40 | 1.70 ▼0.74 | 43.75 ▼21.45 |
Dashboard /wp-admin | 2,255 ▲64 | 6.84 ▲0.93 | 152.87 ▲52.85 | 63.70 ▲22.94 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 4.04 ▲2.05 | 87.87 ▲52.04 | 33.21 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,559 ▲22 | 24.74 ▲1.65 | 721.07 ▲59.92 | 36.06 ▼25.55 |
Media Library /wp-admin/upload.php | 1,442 ▲60 | 5.79 ▲1.57 | 130.29 ▲25.51 | 71.28 ▲25.30 |
Page Lead data /wp-admin/edit.php?post_type=funlhtmllandingpages&page=funlleadform | 970 | 3.71 | 75.07 | 25.21 |
Landing Page /wp-admin/edit.php?post_type=funlhtmllandingpages | 1,146 | 3.94 | 46.21 | 65.16 |
Add New /wp-admin/post-new.php?post_type=funlhtmllandingpages | 2,285 | 5.23 | 86.06 | 78.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_funl_forms
- wp_funlhtmllandingpages_pages
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sunnylandingpages/includes/api/class-funl-data-api.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/sunnylandingpages/admin/pages/single-funlhtmllandingpages.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sunnylandingpages/includes/lead/class-funl-lead-form.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=funlhtmllandingpages
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=funlhtmllandingpages 105:22 Uncaught TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'.
Optimizations
Plugin configuration 90% 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 require attention:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
sunnylandingpages/funl-html-landing-pages.php 85% from 13 tests
"Lead Gen Landing Page" version 4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sunnylandingpages.php" instead of "funl-html-landing-pages.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
No dangerous file extensions were detected789 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 251 | 559 | 787 |
CSS | 1 | 0 | 4 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 38 | 88.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.63% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/funl-icon-blue.png | 0.38KB | 0.50KB | 0.00% |
includes/img/folder.png | 7.45KB | 4.76KB | ▼ 36.08% |
admin/assets/img/funl-icon-white.png | 0.34KB | 0.46KB | 0.00% |