Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/click-to-call-synclio/synclio.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; Synclio has a deprecated constructor
Server metrics [RAM: ▼2.40MB] [CPU: ▼349.59ms] Passed 4 tests
This is a short check of server-side resources used by Synclio Click To Call
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.97 ▼1.54 | 4.75 ▼54.30 |
Dashboard /wp-admin | 1.99 ▼1.42 | 4.53 ▼51.70 |
Posts /wp-admin/edit.php | 1.99 ▼1.65 | 4.59 ▼52.05 |
Add New Post /wp-admin/post-new.php | 1.99 ▼4.98 | 4.86 ▼1,240.30 |
Media Library /wp-admin/upload.php | 1.99 ▼1.30 | 4.17 ▼24.52 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
synclio_activated |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Synclio Click To Call
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,005 ▲251 | 17.23 ▲1.63 | 11.22 ▲5.18 | 2.65 ▲0.06 |
Dashboard /wp-admin | 2,945 ▲92 | 6.76 ▲0.52 | 124.74 ▲1.58 | 206.07 ▲34.98 |
Posts /wp-admin/edit.php | 2,728 ▲43 | 2.99 ▼0.24 | 121.13 ▲59.08 | 186.99 ▼6.79 |
Add New Post /wp-admin/post-new.php | 1,705 ▲39 | 20.12 ▼0.95 | 407.37 ▼30.87 | 165.96 ▼12.39 |
Media Library /wp-admin/upload.php | 1,748 ▲50 | 5.85 ▲0.35 | 154.15 ▲7.26 | 222.55 ▲34.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/click-to-call-synclio/synclio.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; Synclio has a deprecated constructor
- This plugin does not fully uninstall, leaving 2 options in the database
- synclio_id
- synclio_activated
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
Good news, no errors were detected
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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/click-to-call-synclio/synclio.php:17
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/click-to-call-synclio/synclio.php on line 1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/click-to-call-synclio/synclio.php on line 1
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/click-to-call-synclio/synclio.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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:
- Contributors: Contributors not specified
click-to-call-synclio/synclio.php 92% from 13 tests
The main PHP script in "Synclio Click To Call" version 2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("click-to-call-synclio.php" instead of "synclio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,343 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 110 | 15 | 942 |
PHP | 1 | 126 | 143 | 401 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 12 | |
▷ Static methods | 10 | 83.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/images/plugin_banner_bg.png | 4.81KB | 1.24KB | ▼ 74.19% |
_inc/images/plugin_banner_bg-2x.png | 8.28KB | 4.10KB | ▼ 50.50% |