Benchmarks
Plugin footprint 83% 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.05MB] [CPU: ▼25.55ms] Passed 4 tests
A check of server-side resources used by Funnel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 47.67 ▼28.51 |
Dashboard /wp-admin | 3.36 ▲0.05 | 58.27 ▼4.45 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 72.76 ▲18.76 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 111.37 ▼70.80 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.80 ▲1.55 |
Leads /wp-admin/edit.php?post_type=funnel_lead | 3.32 | 34.83 |
Add new /wp-admin/post-new.php?post_type=funnel_lead | 3.42 | 64.99 |
States /wp-admin/edit-tags.php?taxonomy=funnel_state&post_type=funnel_lead | 3.36 | 59.41 |
Settings /wp-admin/edit.php?post_type=funnel_lead&page=funnel_settings | 3.26 | 35.04 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
funnel_state_children |
Browser metrics Passed 4 tests
An overview of browser requirements for Funnel
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲133 | 13.02 ▼1.04 | 12.20 ▲10.49 | 65.95 ▼18.73 |
Dashboard /wp-admin | 2,233 ▲51 | 5.79 ▲0.83 | 136.82 ▼43.16 | 67.68 ▲9.42 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.12 ▼0.04 | 51.30 ▼9.08 | 40.11 ▼22.63 |
Add New Post /wp-admin/post-new.php | 1,440 ▼79 | 18.18 ▼5.15 | 660.69 ▼131.25 | 83.48 ▲0.12 |
Media Library /wp-admin/upload.php | 1,420 ▲38 | 4.41 ▲0.26 | 139.67 ▲23.47 | 61.03 ▼16.65 |
Leads /wp-admin/edit.php?post_type=funnel_lead | 1,108 | 2.02 | 70.22 | 44.05 |
Add new /wp-admin/post-new.php?post_type=funnel_lead | 1,728 | 3.64 | 76.76 | 47.11 |
States /wp-admin/edit-tags.php?taxonomy=funnel_state&post_type=funnel_lead | 1,591 | 2.14 | 33.69 | 80.74 |
Settings /wp-admin/edit.php?post_type=funnel_lead&page=funnel_settings | 884 | 2.03 | 23.82 | 28.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- funnel_state_children
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/funnel/funnel.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/funnel/funnel.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/funnel/core/class-funnel-tax.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/funnel/core/class-funnel-cpt.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funnel/core/class-funnel-profile.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funnel/core/class-funnel-wp.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funnel/core/class-funnel-metabox.php:8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (States example list.), #2 (Lead detail.), #3 (Funnel settings in Pages), #4 (Settings. Users tab.), #5 (Settings. Pages tab.), #6 (Settings. Referrer tab.)
funnel/funnel.php Passed 13 tests
The main file in "Funnel" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Organize your users into a funnel.
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
No dangerous file extensions were detected780 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 104 | 112 | 670 |
PO File | 1 | 248 | 458 | 101 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 33 | |
▷ Static methods | 33 | 100.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
6 PNG files occupy 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 29.41KB | 8.25KB | ▼ 71.96% |
screenshot-4.png | 18.48KB | 4.82KB | ▼ 73.91% |
screenshot-2.png | 8.48KB | 2.46KB | ▼ 71.01% |
screenshot-3.png | 22.08KB | 7.00KB | ▼ 68.29% |
screenshot-5.png | 20.11KB | 5.71KB | ▼ 71.61% |