Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.40ms] Passed 4 tests
A check of server-side resources used by WordPress AutoLead
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 38.08 ▼4.44 |
Dashboard /wp-admin | 3.49 ▲0.18 | 48.09 ▲1.12 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 51.98 ▲7.93 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 88.80 ▼5.65 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.87 ▲3.36 |
AutoLead /wp-admin/edit.php?post_type=cptautolead | 3.45 | 38.90 |
AutoLead Subscribers /wp-admin/edit.php?post_type=cptautolead&page=autolead-subscribers | 3.42 | 32.35 |
Add New AutoLead /wp-admin/post-new.php?post_type=cptautolead | 3.39 | 37.88 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 38 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_autolead_submits |
wp_autolead_submits_meta |
New WordPress options |
---|
widget_recent-comments |
autolead_submits_meta_table_version |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
autolead_submits_table_version |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress AutoLead
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.68 ▼1.07 | 1.69 ▼0.09 | 41.67 ▼1.05 |
Dashboard /wp-admin | 2,237 ▲45 | 4.86 ▼0.04 | 106.07 ▼12.35 | 39.36 ▲1.29 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.05 ▲0.07 | 39.36 ▲3.58 | 35.35 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,564 ▲30 | 23.40 ▼0.01 | 670.79 ▼18.21 | 50.05 ▼4.58 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.16 ▼0.03 | 96.16 ▼0.53 | 44.93 ▲0.61 |
AutoLead /wp-admin/edit.php?post_type=cptautolead | 1,092 | 2.00 | 32.62 | 30.39 |
AutoLead Subscribers /wp-admin/edit.php?post_type=cptautolead&page=autolead-subscribers | 1,107 | 1.71 | 25.29 | 28.22 |
Add New AutoLead /wp-admin/post-new.php?post_type=cptautolead | 2,657 | 7.94 | 166.76 | 46.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_autolead_submits
- wp_autolead_submits_meta
- Zombie WordPress options detected upon uninstall: 8 options
- autolead_submits_meta_table_version
- can_compress_scripts
- autolead_submits_table_version
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=cptautolead&page=autolead-subscribers
- > Notice in wp-content/plugins/wp-autolead/views/list-tables/list-subscribers.php+129
Trying to access array offset on value of type null
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=cptautolead
- > Notice in wp-content/plugins/wp-autolead/autolead.php+241
Trying to get property 'name' of non-object
SRP 0% 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
The following issues need your attention
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-autolead/views/settings/autolead-title-options.php
- > /wp-content/plugins/wp-autolead/views/settings/autolead-choice-options.php
- > /wp-content/plugins/wp-autolead/views/settings/autolead-button-options.php
- > /wp-content/plugins/wp-autolead/views/settings/autolead-list-options.php
- > /wp-content/plugins/wp-autolead/views/settings/autolead-content-options.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-autolead/views/meta/autolead-builder.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-autolead/views/meta/autolead-arcode.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-autolead/views/meta/autolead-title-options.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-autolead/views/meta/autolead-after-survey.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-autolead/views/meta/autolead-list-options.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-autolead/views/meta/autolead-content-options.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-autolead/autolead.php:63
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-autolead/views/list-tables/list-subscribers.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-autolead/views/settings/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-autolead/views/meta/autolead-choice-options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: wp lead, autolead, lead capture, plugin, autolead plugin...
wp-autolead/autolead.php 92% from 13 tests
The principal PHP file in "WordPress AutoLead" v. 1.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-autolead.php" instead of "autolead.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,578 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 85 | 89 | 2,338 |
PHP | 17 | 334 | 429 | 1,323 |
JavaScript | 8 | 180 | 233 | 689 |
SVG | 1 | 0 | 0 | 228 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 59 | 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 | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg-radio-buttons.png | 2.78KB | 1.67KB | ▼ 40.12% |