Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.83MB] [CPU: ▼51.88ms] Passed 4 tests
A check of server-side resources used by Сallback Samlab widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 6.63 ▼37.06 |
Dashboard /wp-admin | 2.18 ▼1.16 | 8.78 ▼53.52 |
Posts /wp-admin/edit.php | 2.18 ▼1.17 | 8.59 ▼35.78 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.70 | 8.95 ▼81.14 |
Media Library /wp-admin/upload.php | 2.18 ▼1.04 | 9.66 ▼22.37 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_callback |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Сallback Samlab widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.23 ▼1.17 | 1.68 ▼0.15 | 39.09 ▼6.10 |
Dashboard /wp-admin | 2,222 ▲30 | 6.00 ▲1.06 | 98.11 ▼14.39 | 92.72 ▲50.47 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.02 ▼0.01 | 36.61 ▲2.39 | 34.43 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,524 ▲4 | 23.80 ▲0.63 | 577.86 ▼97.54 | 48.65 ▼2.07 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.19 ▼0.04 | 98.66 ▲1.14 | 48.22 ▲5.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/allback-samlab/callback-settings.php+207
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Так виджет выглядит форма на сайте), #2 (Так виджет выглядит модуль в админке), #3 (Так виджет выглядит виджет в админке)
allback-samlab/callback-settings.php 92% from 13 tests
"Сallback Samlab widget" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("allback-samlab.php" instead of "callback-settings.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
No dangerous file extensions were detected1,480 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 202 | 232 | 560 |
SVG | 2 | 0 | 1 | 306 |
JavaScript | 6 | 0 | 24 | 227 |
CSS | 5 | 30 | 21 | 194 |
PO File | 1 | 55 | 73 | 119 |
JSON | 2 | 4 | 0 | 45 |
Markdown | 1 | 9 | 0 | 16 |
HTML | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing 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.16 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/info.png | 1.89KB | 1.46KB | ▼ 22.37% |
admin/assets/img/globe.png | 1.34KB | 1.42KB | 0.00% |
admin/assets/img/icon.png | 0.37KB | 0.37KB | 0.00% |