Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼137.70ms] Passed 4 tests
This is a short check of server-side resources used by Lead Assign
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.26 | 38.08 ▲8.05 |
Dashboard /wp-admin | 3.29 ▲0.23 | 49.86 ▲2.90 |
Posts /wp-admin/edit.php | 3.33 ▲0.22 | 49.43 ▲4.77 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 93.56 ▼547.69 |
Media Library /wp-admin/upload.php | 3.17 ▲0.17 | 35.17 ▼10.79 |
FAQ /wp-admin/admin.php?page=leadassign-faq | 3.13 | 31.61 |
Floating Widget Area /wp-admin/options-general.php?page=floating-widget-area-settings | 3.14 | 30.64 |
Lead Assign /wp-admin/options-general.php?page=lead-assign-settings | 3.14 | 30.69 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 5 new options
New WordPress options |
---|
floating-widget-area-min-width |
floating-widget-area-image-url |
leadassign_option_admin_notice_shown |
leadassign_setting_do_style |
widget_lead_assign_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Lead Assign
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,849 ▲277 | 16.54 ▲0.84 | 14.85 ▲2.55 | 46.76 ▼12.65 |
Dashboard /wp-admin | 2,994 ▲60 | 6.01 ▲0.05 | 142.89 ▼4.53 | 111.52 ▼3.66 |
Posts /wp-admin/edit.php | 2,768 ▲29 | 2.73 ▲0.01 | 71.71 ▲6.45 | 87.41 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,700 ▲119 | 18.72 ▲0.55 | 401.88 ▼15.87 | 106.02 ▼13.39 |
Media Library /wp-admin/upload.php | 1,834 ▲86 | 5.01 ▲0.03 | 160.84 ▼0.01 | 114.49 ▼60.94 |
FAQ /wp-admin/admin.php?page=leadassign-faq | 1,131 | 2.08 | 58.26 | 60.29 |
Floating Widget Area /wp-admin/options-general.php?page=floating-widget-area-settings | 1,116 | 2.39 | 56.11 | 70.73 |
Lead Assign /wp-admin/options-general.php?page=lead-assign-settings | 1,168 | 2.18 | 71.31 | 65.07 |
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 did not uninstall without warnings or errors
- > Notice in wp-content/plugins/lead-assign/uninstall.php+13
Undefined variable: leadassign_setting_do_style_name
- Zombie WordPress options detected upon uninstall: 2 options
- widget_lead_assign_widget
- leadassign_setting_do_style
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: contact form 7, contact form, leads, sales
lead-assign/lead-assign.php Passed 13 tests
The entry point to "Lead Assign" version 1.0.3.1 is a PHP file that has certain tags in its header comment area
52 characters long description:
Send leads from your website straight to Lead Assign
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,130 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 143 | 299 | 924 |
JavaScript | 2 | 29 | 84 | 149 |
CSS | 6 | 9 | 25 | 57 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 14 | |
▷ Static methods | 10 | 71.43% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 48 | 96.00% |
▷ Anonymous functions | 2 | 4.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
floating-widget-area/default-icon.png | 5.26KB | 3.33KB | ▼ 36.67% |
img/logo.png | 10.69KB | 5.96KB | ▼ 44.22% |