Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.94ms] Passed 4 tests
Server-side resources used by Phone Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.57 ▼7.98 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.51 ▲0.34 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.56 ▲3.26 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.63 ▼11.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.00 ▲3.98 |
Phone Button /wp-admin/options-general.php?page=yydev-phone-btn | 3.31 | 36.70 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
yydev_phone_btn |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
yydev_phone_btn_timestamp |
Browser metrics Passed 4 tests
Checking browser requirements for Phone Button
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.19 ▼1.18 | 4.18 ▲2.24 | 39.42 ▼11.28 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼1.03 | 110.49 ▲5.90 | 41.53 ▼3.87 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▼0.02 | 35.00 ▼0.74 | 33.55 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,523 ▼0 | 23.04 ▼0.22 | 664.16 ▲0.34 | 48.59 ▼5.27 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.01 | 98.29 ▼5.88 | 42.75 ▲0.12 |
Phone Button /wp-admin/options-general.php?page=yydev-phone-btn | 1,396 | 3.02 | 45.47 | 80.30 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- yydev_phone_btn_timestamp
- widget_recent-comments
- yydev_phone_btn
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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)
Good news, no errors were detected
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Requires at least: Invalid version format
phone-button/index.php 92% from 13 tests
Analyzing the main PHP file in "Phone Button" version 2.1.1
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("phone-button.php" instead of "index.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
There were no executable files found in this plugin795 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 339 | 193 | 795 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 17 | |
▷ Named functions | 14 | 82.35% |
▷ Anonymous functions | 3 | 17.65% |
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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.87KB | 1.99KB | 0.00% |
images/phone.png | 0.46KB | 0.47KB | 0.00% |