Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.94MB] [CPU: ▼34.92ms] Passed 4 tests
Analyzing server-side resources used by Callback Request
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.59 ▲2.60 |
Dashboard /wp-admin | 3.00 ▼0.30 | 27.63 ▼20.31 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 22.78 ▼29.16 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 23.13 ▼81.91 |
Media Library /wp-admin/upload.php | 3.00 ▼0.22 | 28.53 ▼8.28 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Callback Request
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.33 ▼0.94 | 2.42 ▲0.44 | 44.38 ▲3.15 |
Dashboard /wp-admin | 2,209 ▲24 | 5.84 ▼0.02 | 103.39 ▼6.20 | 80.25 ▲38.66 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.97 ▼0.05 | 36.70 ▼0.19 | 36.26 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,680 ▲146 | 22.77 ▼0.37 | 664.54 ▲23.55 | 56.03 ▲5.16 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.22 ▲0.00 | 105.67 ▲5.04 | 48.80 ▲3.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/callback-request/callback_shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/callback-request/callback.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/callback-request/callback_settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/callback-request/uninstall.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: request call-back, form, call-back, callback request, callback...
callback-request/callback.php 85% from 13 tests
Analyzing the main PHP file in "Callback Request" version 1.4
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 208 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("callback-request.php" instead of "callback.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,257 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 139 | 37 | 812 |
PHP | 4 | 42 | 31 | 211 |
PO File | 3 | 75 | 75 | 204 |
CSS | 1 | 4 | 0 | 30 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/success.png | 36.61KB | 2.40KB | ▼ 93.44% |
js/hs.png | 2.62KB | 7.54KB | 0.00% |
css/callback_request_ico.png | 2.96KB | 0.23KB | ▼ 92.26% |
js/hv.png | 2.80KB | 7.32KB | 0.00% |