Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼7.13ms] Passed 4 tests
An overview of server-side resources used by Coviu Video Calls
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 33.93 ▼2.76 |
Dashboard /wp-admin | 3.49 ▲0.19 | 42.42 ▼4.34 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.26 ▼1.33 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 78.73 ▼18.53 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 33.50 ▼2.88 |
Coviu Calls /wp-admin/options-general.php?page=coviu-video-calls/coviu-calls.php | 3.38 | 26.73 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- The plugin illegally modified 1 file (1.66KB) outside of "wp-content/plugins/coviu-video-calls/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/single-cvu_session.php
Filesystem: 148 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
coviu-video-calls |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Coviu Video Calls
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.26 ▼1.16 | 1.84 ▲0.11 | 38.57 ▼2.79 |
Dashboard /wp-admin | 2,239 ▲51 | 5.94 ▲1.07 | 112.04 ▲0.82 | 75.52 ▲35.32 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 2.10 ▲0.06 | 39.19 ▼4.32 | 37.15 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,695 ▲162 | 22.64 ▼0.61 | 720.21 ▲41.53 | 50.27 ▼4.80 |
Media Library /wp-admin/upload.php | 1,421 ▲36 | 4.27 ▲0.06 | 106.51 ▼1.79 | 45.72 ▼4.04 |
Coviu Calls /wp-admin/options-general.php?page=coviu-video-calls/coviu-calls.php | 936 | 1.80 | 26.83 | 31.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 fix the following
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/examples/cookie_jar.php
- > /wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/examples/post.php
- > /wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/examples/basic-auth.php
- > /wp-content/plugins/coviu-video-calls/coviu-calls.php
- > /wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/examples/session.php
- > /wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/examples/multiple.php
- > /wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/examples/cookie.php
- > /wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/bin/create_pear_package.php
- > /wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/examples/get.php
- 67× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/coviu-video-calls/vendor/coviu/coviu-sdk/tests/Coviu/SdkTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception' not found in wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/library/Requests/Exception/Transport.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/tests/ChunkedEncoding.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/library/Requests/Exception/HTTP/413.php:13
- > PHP Fatal error
Uncaught Requests_Exception: cURL error 7: Failed to connect to 127.0.0.1 port 8080: Connection refused in wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/library/Requests/Transport/cURL.php:422
- > PHP Fatal error
Uncaught Error: Class 'RequestsTest_Transport_Base' not found in wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/tests/Transport/fsockopen.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/library/Requests/Exception/HTTP/500.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/coviu-video-calls/vendor/coviu/coviu-sdk/tests/Coviu/HttpTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/tests/Auth/Basic.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/coviu-video-calls/vendor/rmccue/requests/tests/Proxy/HTTP.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Screenshot1.png : the admin interface of the Coviu video calls Wordpress plugin), #2 (Screenshot2.png : the appointments page of the Coviu video calls Wordpress plugin), #3 (Screenshot3.png : example video call on Coviu)
coviu-video-calls/coviu-calls.php 85% from 13 tests
"Coviu Video Calls" version 0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("coviu-video-calls.php" instead of "coviu-calls.php")
- Domain Path: The domain path folder was not found ("/languages")
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
Everything looks great! No dangerous files found in this plugin9,106 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 1,594 | 3,896 | 7,798 |
Markdown | 13 | 399 | 0 | 979 |
JSON | 4 | 0 | 0 | 157 |
YAML | 3 | 10 | 5 | 63 |
XML | 2 | 4 | 0 | 60 |
Bourne Again Shell | 1 | 8 | 1 | 27 |
Bourne Shell | 2 | 4 | 0 | 12 |
CSS | 1 | 1 | 0 | 6 |
Python | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 1 | 1.10% |
▷ Concrete classes | 90 | 98.90% |
▷ Final classes | 0 | 0.00% |
Methods | 517 | |
▷ Static methods | 87 | 16.83% |
▷ Public methods | 468 | 90.52% |
▷ Protected methods | 44 | 8.51% |
▷ Private methods | 5 | 0.97% |
Functions | 63 | |
▷ Named functions | 58 | 92.06% |
▷ Anonymous functions | 5 | 7.94% |
Constants | 26 | |
▷ Global constants | 2 | 7.69% |
▷ Class constants | 24 | 92.31% |
▷ Public constants | 24 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 1.24MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 349.20KB | 91.18KB | ▼ 73.89% |
images/DeleteRed.png | 0.96KB | 1.01KB | 0.00% |
images/link.png | 0.83KB | 0.52KB | ▼ 37.12% |
screenshot-3.png | 722.35KB | 240.00KB | ▼ 66.78% |
images/icon.png | 0.97KB | 0.93KB | ▼ 4.04% |