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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.73ms] Passed 4 tests
This is a short check of server-side resources used by CallPage - Free Callback Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 42.17 ▲0.43 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.65 ▼2.66 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.30 ▼1.42 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 99.63 ▲2.15 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 35.52 ▲0.73 |
CallPage /wp-admin/options-general.php?page=callpage-widget | 3.28 | 31.33 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for CallPage - Free Callback Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.24 ▼1.07 | 1.60 ▼0.15 | 41.09 ▲0.23 |
Dashboard /wp-admin | 2,214 ▲23 | 4.85 ▼0.23 | 112.93 ▲9.72 | 46.56 ▼0.20 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.99 ▼0.03 | 40.07 ▲1.41 | 35.08 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 23.07 ▲5.53 | 620.11 ▼59.58 | 47.95 ▼9.04 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.17 ▼0.03 | 96.04 ▼11.08 | 40.53 ▼2.33 |
CallPage /wp-admin/options-general.php?page=callpage-widget | 899 | 2.08 | 22.21 | 48.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=callpage-widget
- > Notice in wp-content/plugins/callpage/admin/partials/callpage-widget-admin-display.php+37
Undefined index: settings-updated
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/callpage/public/partials/callpage-widget-public-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/callpage/admin/partials/callpage-login-display.php:108
- > PHP Notice
Undefined index: settings-updated in wp-content/plugins/callpage/admin/partials/callpage-login-display.php on line 104
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/callpage/admin/partials/callpage-widget-admin-display.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
8 plugin tags: calls, live call, callback, call button, call request...
callpage/callpage-widget.php 85% from 13 tests
Analyzing the main PHP file in "CallPage - Free Callback Widget" version 1.0.1.21
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("callpage.php" instead of "callpage-widget.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 plugin858 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 131 | 114 | 435 |
PHP | 13 | 175 | 590 | 417 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/logo-wp.png | 37.00KB | 16.67KB | ▼ 54.95% |