Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼6.07ms] Passed 4 tests
This is a short check of server-side resources used by F70 Lead Document Download
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 38.40 ▼2.49 |
Dashboard /wp-admin | 3.66 ▲0.31 | 48.56 ▼11.91 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 50.93 ▲2.32 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 84.14 ▼11.15 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 36.56 ▲1.29 |
Form /wp-admin/edit.php?post_type=f70_lead_document | 3.63 | 39.27 |
Settings /wp-admin/admin.php?page=f70ldd-setting-admin | 3.50 | 36.77 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 56 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_f70ldd_entry_list |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
f70ldd_db_version |
f70ldd_download_page_id |
f70ldd_cookie_delete_key |
widget_recent-comments |
f70ldd_download_number_limit |
f70ldd_email_body_to_admin |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for F70 Lead Document Download
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 14.25 ▼0.39 | 1.65 ▲0.09 | 40.42 ▼0.26 |
Dashboard /wp-admin | 2,369 ▲192 | 6.19 ▲0.66 | 107.45 ▲19.95 | 37.62 ▼3.22 |
Posts /wp-admin/edit.php | 2,300 ▲200 | 3.44 ▲1.49 | 43.79 ▲4.12 | 31.59 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.32 ▲0.31 | 643.35 ▼32.12 | 35.54 ▼20.82 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.12 ▼0.12 | 78.20 ▼21.15 | 40.83 ▼4.15 |
Form /wp-admin/edit.php?post_type=f70_lead_document | 1,273 | 3.25 | 44.52 | 26.75 |
Settings /wp-admin/admin.php?page=f70ldd-setting-admin | 1,264 | 3.03 | 36.71 | 68.12 |
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
- The uninstall procedure failed, leaving 1 table in the database
- wp_f70ldd_entry_list
- This plugin does not fully uninstall, leaving 12 options in the database
- f70ldd_db_version
- widget_theysaidso_widget
- can_compress_scripts
- f70ldd_email_body_to_admin
- widget_recent-posts
- f70ldd_email_body_to_user
- db_upgraded
- f70ldd_download_page_id
- widget_recent-comments
- theysaidso_admin_options
- ...
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/f70-lead-document-download/views/download_ng.php
- > /wp-content/plugins/f70-lead-document-download/views/download.php
- > /wp-content/plugins/f70-lead-document-download/trunk/views/download_ng.php
- > /wp-content/plugins/f70-lead-document-download/trunk/views/download.php
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/f70-lead-document-download/trunk/views/entry_ng.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/f70-lead-document-download/views/email_to_user.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/f70-lead-document-download/trunk/views/email_to_user.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/f70-lead-document-download/trunk/views/email_to_admin.php:1
- > PHP Warning
Use of undefined constant F70_LDD__COOKIE_NAME - assumed 'F70_LDD__COOKIE_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/f70-lead-document-download/trunk/views/entry_ng.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/f70-lead-document-download/views/accepted.php:6
- > PHP Fatal error
Uncaught Error: Class 'f70LddFunctions' not found in wp-content/plugins/f70-lead-document-download/trunk/views/entry.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/f70-lead-document-download/trunk/views/accepted.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/f70-lead-document-download/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/f70-lead-document-download/views/email_to_admin.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: download, form, email, marketing, subscribe
f70-lead-document-download/f70-lead-document-download.php 92% from 13 tests
Analyzing the main PHP file in "F70 Lead Document Download" version 1.1
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 184 characters long)
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
Everything looks great! No dangerous files found in this plugin2,249 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 428 | 216 | 1,677 |
Sass | 6 | 53 | 11 | 277 |
CSS | 2 | 9 | 12 | 230 |
JavaScript | 1 | 21 | 17 | 65 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 70 | 44.87% |
▷ Public methods | 156 | 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 | 24 | |
▷ Global constants | 24 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.63MB with 0.42MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/istk-portfolio.png | 324.83KB | 110.58KB | ▼ 65.96% |
trunk/assets/image/istk-portfolio.png | 324.83KB | 110.58KB | ▼ 65.96% |