Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.92MB] [CPU: ▼31.35ms] Passed 4 tests
A check of server-side resources used by Toky Click To Call
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.97 ▲0.52 |
Dashboard /wp-admin | 3.02 ▼0.28 | 24.49 ▼25.84 |
Posts /wp-admin/edit.php | 3.02 ▼0.34 | 25.13 ▼20.03 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.87 | 24.21 ▼67.85 |
Media Library /wp-admin/upload.php | 3.02 ▼0.21 | 21.42 ▼11.66 |
Server storage [IO: ▲2.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Toky Click To Call
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.55 ▼1.25 | 1.69 ▼0.09 | 45.29 ▲2.92 |
Dashboard /wp-admin | 2,231 ▲43 | 5.89 ▲0.98 | 99.96 ▼18.05 | 40.03 ▼3.33 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.02 ▼0.11 | 38.67 ▲1.14 | 35.96 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 23.51 ▲0.21 | 676.82 ▲39.26 | 46.82 ▼3.33 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.22 ▼0.04 | 94.64 ▲0.00 | 43.40 ▼0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/toky-click-to-call/toky.php+29
Use of undefined constant toky_render_settings_page - assumed 'toky_render_settings_page' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/toky-click-to-call/toky.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
toky-click-to-call/toky.php 92% from 13 tests
Analyzing the main PHP file in "Toky Click To Call" version 1.0
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("toky-click-to-call.php" instead of "toky.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected359 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 34 | 0 | 202 |
PHP | 1 | 53 | 9 | 157 |
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.20 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 2.52MB with 1.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/toky-icon.png | 1.11KB | 0.70KB | ▼ 36.99% |
assets/screenshot-1.png | 321.71KB | 99.04KB | ▼ 69.21% |
assets/screenshot-3.png | 2,040.46KB | 922.60KB | ▼ 54.78% |
images/toky-logo.png | 7.51KB | 4.52KB | ▼ 39.86% |
assets/screenshot-2.png | 213.98KB | 63.42KB | ▼ 70.36% |