Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/csh-callback/includes/widget-callback.php+5
Function create_function() is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼50.58ms] Passed 4 tests
An overview of server-side resources used by CSH Callback
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 7.03 ▼31.27 |
Dashboard /wp-admin | 2.19 ▼1.11 | 9.85 ▼41.65 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 9.08 ▼37.55 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 6.64 ▼91.85 |
Media Library /wp-admin/upload.php | 2.19 ▼1.03 | 7.13 ▼27.76 |
Call Request /wp-admin/admin.php?page=call-request-list | 2.20 | 8.98 |
Settings /wp-admin/admin.php?page=call-request-settings | 2.20 | 7.64 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 44 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_csh_callback_request |
New WordPress options |
---|
db_upgraded |
widget_cshcb_callback |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for CSH Callback
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,028 ▲271 | 14.20 ▼0.18 | 14.15 ▲12.32 | 51.61 ▲6.01 |
Dashboard /wp-admin | 2,232 ▲43 | 4.91 ▼0.02 | 113.93 ▲1.97 | 45.22 ▲6.43 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.03 ▲0.02 | 37.17 ▲0.46 | 34.70 ▲3.92 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 22.87 ▲4.69 | 602.31 ▼11.61 | 77.02 ▲4.77 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.20 ▼0.05 | 95.22 ▼12.39 | 41.74 ▼6.34 |
Call Request /wp-admin/admin.php?page=call-request-list | 801 | 2.07 | 24.87 | 22.88 |
Settings /wp-admin/admin.php?page=call-request-settings | 1,900 | 4.51 | 86.05 | 30.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/csh-callback/includes/widget-callback.php+5
Function create_function() is deprecated
- Zombie tables were found after uninstall: 1 table
- wp_csh_callback_request
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_cshcb_callback
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=call-request-settings
- > Deprecated in wp-content/plugins/csh-callback/includes/widget-callback.php+5
Function create_function() is deprecated
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
Please fix the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant CSHCB_PLUGIN_PUBLIC_DIR - assumed 'CSHCB_PLUGIN_PUBLIC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/csh-callback/includes/class-csh-callback.php on line 98
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/csh-callback/layouts/active/active-form.php:2
- > PHP Fatal error
require_once(): Failed opening required 'CSHCB_PLUGIN_PUBLIC_DIRclass-csh-callback-public.php' (include_path='.:/usr/share/php') in wp-content/plugins/csh-callback/includes/class-csh-callback.php on line 98
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/csh-callback/layouts/widget/widget-form.php:2
- > PHP Warning
require_once(CSHCB_PLUGIN_PUBLIC_DIRclass-csh-callback-public.php): failed to open stream: No such file or directory in wp-content/plugins/csh-callback/includes/class-csh-callback.php on line 98
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/csh-callback/layouts/shortcode/shortcode-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/csh-callback/includes/widget-callback.php:5
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #3, #4 in csh-callback/assets to your readme.txt
csh-callback/csh-callback.php 92% from 13 tests
Analyzing the main PHP file in "CSH Callback" version 1.0.0
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected6,116 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 2,880 |
CSS | 7 | 899 | 11 | 2,019 |
PHP | 12 | 283 | 237 | 1,051 |
JavaScript | 3 | 18 | 17 | 166 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 14.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 93.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.82% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/phone.png | 12.09KB | 4.64KB | ▼ 61.60% |
assets/images/callback.png | 1.75KB | 0.95KB | ▼ 45.62% |