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.14MB] [CPU: ▼9.07ms] Passed 4 tests
This is a short check of server-side resources used by Callback
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.30 ▼1.68 |
Dashboard /wp-admin | 3.43 ▲0.13 | 42.87 ▼9.33 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 45.66 ▼2.87 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 81.77 ▼22.40 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.82 ▲9.84 |
Callback Form /wp-admin/options-general.php?page=callback/settings.php | 3.35 | 35.18 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
callback_track |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Callback
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲210 | 13.86 ▼0.49 | 9.25 ▲7.63 | 39.58 ▼2.87 |
Dashboard /wp-admin | 2,266 ▲92 | 5.59 ▼0.11 | 85.09 ▼29.01 | 43.05 ▲0.85 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.03 ▲0.06 | 41.84 ▼16.47 | 33.60 ▼3.23 |
Add New Post /wp-admin/post-new.php | 6,210 ▲4,684 | 19.06 ▼4.23 | 928.11 ▲318.04 | 52.55 ▲0.29 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.15 ▼0.09 | 104.11 ▲1.32 | 45.19 ▲3.39 |
Callback Form /wp-admin/options-general.php?page=callback/settings.php | 1,130 | 2.29 | 27.78 | 52.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- callback_track
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/callback/callback.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/callback/messages.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/callback/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Contributors: Contributors not specified
- Screenshots: Please add images for these screenshots: #1 (Example callback form), #2 (Settings page), #3 (Callbacks manager)
- Contributors: No valid plugin tags found
callback/callback.php 92% from 13 tests
"Callback" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,006 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 262 | 169 | 828 |
CSS | 1 | 19 | 14 | 96 |
JavaScript | 2 | 13 | 4 | 82 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 25 | |
▷ Named functions | 25 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.71KB | 4.28KB | ▼ 78.27% |
screenshot-2.png | 64.15KB | 17.56KB | ▼ 72.63% |
screenshot-3.png | 53.41KB | 12.80KB | ▼ 76.03% |