Benchmarks
Plugin footprint 23% 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
- > Deprecated in wp-content/plugins/wp-call-me-back/wp-callmeback.php+970
Methods with the same name as their class will not be constructors in a future version of PHP; wpgcallmeback_Widget has a deprecated constructor
Server metrics [RAM: ▼1.51MB] [CPU: ▼52.59ms] Passed 4 tests
An overview of server-side resources used by Quick Contact and Call back widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.49 ▼0.97 | 6.40 ▼33.30 |
Dashboard /wp-admin | 2.51 ▼0.84 | 7.84 ▼48.54 |
Posts /wp-admin/edit.php | 2.51 ▼0.85 | 8.14 ▼42.34 |
Add New Post /wp-admin/post-new.php | 2.51 ▼3.38 | 7.17 ▼86.18 |
Media Library /wp-admin/upload.php | 2.51 ▼0.72 | 6.18 ▼26.61 |
Add Dropdown Options /wp-admin/admin.php?page=rcb-best-time | 2.51 | 7.61 |
Delete Dropdown Options2 /wp-admin/admin.php?page=delete-options-two | 2.51 | 6.97 |
Delete Dropdown Options /wp-admin/admin.php?page=delete-best-time | 2.51 | 8.19 |
Add Dropdown Options2 /wp-admin/admin.php?page=rcb-options-two | 2.51 | 7.94 |
Settings and options /wp-admin/admin.php?page=settings-options | 2.51 | 7.13 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_request_a_call_back |
wp_drop_down_options |
wp_call_back_best_time |
New WordPress options |
---|
theysaidso_admin_options |
widget_wpgcallmeback-widget |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Quick Contact and Call back widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.24 ▼1.01 | 1.72 ▼0.14 | 37.04 ▼5.90 |
Dashboard /wp-admin | 2,226 ▲38 | 5.89 ▲0.81 | 110.73 ▼0.31 | 42.97 ▼3.94 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.04 ▲0.00 | 40.21 ▲4.31 | 35.66 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.11 ▲5.05 | 650.31 ▲45.08 | 62.17 ▲5.58 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.23 ▲0.06 | 99.97 ▼0.97 | 42.06 ▼2.35 |
Add Dropdown Options /wp-admin/admin.php?page=rcb-best-time | 823 | 1.76 | 27.08 | 23.55 |
Delete Dropdown Options2 /wp-admin/admin.php?page=delete-options-two | 2,250 | 2.08 | 40.74 | 47.35 |
Delete Dropdown Options /wp-admin/admin.php?page=delete-best-time | 2,250 | 2.07 | 45.23 | 36.11 |
Add Dropdown Options2 /wp-admin/admin.php?page=rcb-options-two | 823 | 1.76 | 25.56 | 22.54 |
Settings and options /wp-admin/admin.php?page=settings-options | 2,245 | 1.94 | 41.99 | 32.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-call-me-back/wp-callmeback.php+970
Methods with the same name as their class will not be constructors in a future version of PHP; wpgcallmeback_Widget has a deprecated constructor
- Zombie tables were found after uninstall: 3 tables
- wp_request_a_call_back
- wp_drop_down_options
- wp_call_back_best_time
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_wpgcallmeback-widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-options
- > Deprecated in wp-content/plugins/wp-call-me-back/wp-callmeback.php+970
Methods with the same name as their class will not be constructors in a future version of PHP; wpgcallmeback_Widget has a deprecated constructor
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-options
- > Deprecated in wp-content/plugins/wp-call-me-back/class/recaptchalib.php+42
Methods with the same name as their class will not be constructors in a future version of PHP; ReCaptcha has a deprecated constructor
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-options
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+35
Trying to access array offset on value of type bool
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wpgcallmeback_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-options
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+198
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rcb-options-two
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+285
Undefined variable: getId
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rcb-options-two
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+286
Undefined index: paged
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rcb-options-two
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+290
Undefined variable: getBestTime
- > GET request to /wp-admin/admin.php?page=delete-options-two
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+321
Undefined index: options
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=delete-best-time
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-options
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+712
Undefined variable: subject
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-options
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+153
session_start(): A session had already been started - ignoring
- 60 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-options
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+893
Undefined index: area_status
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-options
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+1483
Undefined variable: dropdown
- > GET request to /wp-admin/admin.php?page=delete-best-time
- > Notice in wp-content/plugins/wp-call-me-back/wp-callmeback.php+361
Undefined index: best_time
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-call-me-back/class/class-wpg-callback-list-table.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-call-me-back/class/class-wpg-dropdownoptions-list-table.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-call-me-back/class/class-wpg-besttime-list-table.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Please add an image for screenshot #1 ()
wp-call-me-back/wp-callmeback.php 92% from 13 tests
The main file in "Quick Contact and Call back widget" v. 3.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-call-me-back.php" instead of "wp-callmeback.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
There were no executable files found in this plugin8,517 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 3,967 |
PHP | 7 | 311 | 695 | 2,482 |
CSS | 4 | 27 | 25 | 929 |
HTML | 1 | 121 | 0 | 665 |
JavaScript | 1 | 9 | 37 | 474 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 11 | 11.96% |
▷ Public methods | 74 | 80.43% |
▷ Protected methods | 16 | 17.39% |
▷ Private methods | 2 | 2.17% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) images/_vti_cnf/warning.png | 0.37KB | 0.00KB | ▼ 100.00% |
(invalid) images/_vti_cnf/notice.png | 0.37KB | 0.00KB | ▼ 100.00% |
images/warning.png | 0.47KB | 0.45KB | ▼ 4.14% |
images/call-me-btn.png | 5.07KB | 2.47KB | ▼ 51.37% |
(invalid) images/_vti_cnf/success.png | 0.37KB | 0.00KB | ▼ 100.00% |