Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼10.49ms] Passed 4 tests
Server-side resources used by Wordpress2Lead for PHC CRM FX
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.63 ▼8.97 |
Dashboard /wp-admin | 3.36 ▲0.02 | 46.50 ▼18.27 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 45.31 ▼1.31 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.59 ▼13.41 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.76 ▲1.23 |
Wordpress2Lead for PHC CRM FX /wp-admin/options-general.php?page=phcfx-web2lead | 3.27 | 32.30 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
phcfx-web2lead |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress2Lead for PHC CRM FX
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲38 | 14.38 ▲0.02 | 1.55 ▼0.36 | 39.90 ▼3.50 |
Dashboard /wp-admin | 2,233 ▲62 | 5.63 ▲0.10 | 87.13 ▼1.98 | 46.72 ▲7.57 |
Posts /wp-admin/edit.php | 2,136 ▲39 | 2.10 ▲0.09 | 33.16 ▼1.36 | 36.93 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.43 ▲0.40 | 647.71 ▼45.23 | 55.55 ▲1.03 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.20 ▼0.04 | 93.61 ▲1.18 | 40.78 ▲1.35 |
Wordpress2Lead for PHC CRM FX /wp-admin/options-general.php?page=phcfx-web2lead | 1,523 | 2.14 | 24.22 | 27.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- phcfx-web2lead
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/phcfx-web2lead/phcfx-web2lead-form.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/phcfx-web2lead/phcfx-web2lead.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/phcfx-web2lead/phcfx-web2lead-settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/phcfx-web2lead/settings/form-fields.php:3
- > PHP Warning
Use of undefined constant PLUGIN_NAME - assumed 'PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/phcfx-web2lead/phcfx-web2lead-settings.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/phcfx-web2lead/settings/backend.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (An example form generated with WordPress2Lead for PHC CRM FX), #2 (The backend settings page in WordPress), #3 (And also the form settings page (where form fields are selected))
phcfx-web2lead/phcfx-web2lead.php 92% from 13 tests
The entry point to "Wordpress2Lead for PHC CRM FX" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 143 characters long)
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 plugin427 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 93 | 69 | 387 |
JavaScript | 1 | 18 | 20 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.20MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 24.67KB | 11.78KB | ▼ 52.25% |
screenshot-3.png | 54.25KB | 29.66KB | ▼ 45.32% |
screenshot-2.png | 121.81KB | 65.52KB | ▼ 46.21% |
images/refresh.png | 0.42KB | 0.31KB | ▼ 25.29% |
images/phcfx-crm.png | 4.65KB | 2.94KB | ▼ 36.73% |