Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/call-leads/includes/backend/CallLeads/CallLeads.php+27
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.51MB] [CPU: ▲2.18ms] Passed 4 tests
Server-side resources used by Call Leads WordPress Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 45.39 ▼2.06 |
Dashboard /wp-admin | 3.81 ▲0.51 | 58.79 ▲8.10 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 53.53 ▼3.17 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 99.74 ▲11.98 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 44.48 ▲5.86 |
Leads /wp-admin/edit.php?post_type=callleads | 3.78 | 46.07 |
Settings /wp-admin/admin.php?page=calds_settings | 3.97 | 45.19 |
Server storage [IO: ▲6.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 1,325 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
calds_admin_settings_options |
Browser metrics Passed 4 tests
A check of browser resources used by Call Leads WordPress Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲162 | 13.84 ▼0.90 | 7.77 ▲5.66 | 41.48 ▼1.88 |
Dashboard /wp-admin | 2,221 ▲15 | 5.84 ▼0.07 | 96.76 ▼5.62 | 80.57 ▲39.79 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.03 ▲0.06 | 34.78 ▼5.38 | 32.74 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,572 ▲30 | 23.91 ▲0.60 | 676.51 ▼30.37 | 58.41 ▼5.30 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.24 ▲0.02 | 107.26 ▼3.82 | 46.98 ▼5.09 |
Leads /wp-admin/edit.php?post_type=callleads | 1,098 | 1.98 | 31.82 | 33.12 |
Settings /wp-admin/admin.php?page=calds_settings | 4,475 | 9.46 | 232.86 | 148.59 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 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 following issues need your attention
- 1256× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/Proxy/V1/Service/ShortCodeContext.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageContext.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/Preview/Understand/Assistant/Intent/IntentStatisticsInstance.php:27
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationInstance.php:32
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/Pricing/V1/PhoneNumberPage.php:14
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/Chat/V2/ServiceContext.php:33
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderList.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/IpMessaging/V2/Service/BindingPage.php:14
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Version' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/Preview/AccSecurity.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/call-leads/vendor/twilio/sdk/Twilio/Rest/Preview/Wireless/SimContext.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=calds_settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=calds_settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=calds_settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=calds_settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
call-leads/callleads.php 85% from 13 tests
This is the main PHP file of "Call Leads WordPress Plugin" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("call-leads.php" instead of "callleads.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin70,407 lines of code in 1,307 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,298 | 18,427 | 73,999 | 68,547 |
CSS | 3 | 46 | 50 | 1,665 |
JavaScript | 2 | 16 | 10 | 90 |
JSON | 2 | 0 | 0 | 76 |
SVG | 1 | 8 | 0 | 20 |
Dockerfile | 1 | 3 | 0 | 9 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.00 |
Code structure | ||
---|---|---|
Namespaces | 138 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 1,613 | |
▷ Abstract classes | 189 | 11.72% |
▷ Concrete classes | 1,424 | 88.28% |
▷ Final classes | 0 | 0.00% |
Methods | 8,925 | |
▷ Static methods | 346 | 3.88% |
▷ Public methods | 8,043 | 90.12% |
▷ Protected methods | 876 | 9.82% |
▷ Private methods | 6 | 0.07% |
Functions | 85 | |
▷ Named functions | 4 | 4.71% |
▷ Anonymous functions | 81 | 95.29% |
Constants | 13 | |
▷ Global constants | 5 | 38.46% |
▷ Class constants | 8 | 61.54% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/just_icon.png | 13.46KB | 2.92KB | ▼ 78.29% |
assets/img/callleads_icon.png | 0.41KB | 0.76KB | 0.00% |
assets/img/icon_with_icon.png | 24.48KB | 6.53KB | ▼ 73.30% |
assets/img/icon_with_image.png | 33.86KB | 8.92KB | ▼ 73.65% |
assets/img/icon_with_text.png | 19.78KB | 4.99KB | ▼ 74.75% |