Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▼1.54MB] [CPU: ▼44.32ms] Passed 4 tests
This is a short check of server-side resources used by RingCentral Communications Plugin - FREE
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼1.01 | 9.82 ▼31.75 |
Dashboard /wp-admin | 2.47 ▼0.84 | 12.30 ▼39.66 |
Posts /wp-admin/edit.php | 2.47 ▼0.89 | 12.31 ▼28.39 |
Add New Post /wp-admin/post-new.php | 2.47 ▼3.42 | 14.35 ▼77.47 |
Media Library /wp-admin/upload.php | 2.47 ▼0.76 | 11.76 ▼20.27 |
Call Me Requests /wp-admin/admin.php?page=ringcentral_list_callme | 2.46 | 12.46 |
Settings /wp-admin/admin.php?page=ringcentral_Admin | 2.46 | 13.64 |
Add Subscribers /wp-admin/admin.php?page=ringcentral_add_subs | 2.46 | 12.44 |
List Subscribers /wp-admin/admin.php?page=ringcentral_list_subs | 2.46 | 12.91 |
Server storage [IO: ▲7.86MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,203 new files
Database: 5 new tables, 8 new options
New tables |
---|
ringcentral_call_requests |
ringcentral_queue |
ringcentral_help |
ringcentral_control |
ringcentral_contacts |
New WordPress options |
---|
widget_ring_central_callme_widget |
widget_ring_central_contacts_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by RingCentral Communications Plugin - FREE
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲93 | 14.30 ▲0.23 | 1.91 ▲0.28 | 40.39 ▼1.96 |
Dashboard /wp-admin | 2,234 ▲70 | 5.56 ▼0.12 | 89.35 ▼21.94 | 66.74 ▲25.74 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 1.99 ▲0.04 | 37.47 ▼3.87 | 34.39 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.23 ▲0.11 | 672.05 ▲48.26 | 50.05 ▼3.98 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.24 ▲0.08 | 98.61 ▼1.07 | 70.62 ▲26.47 |
Call Me Requests /wp-admin/admin.php?page=ringcentral_list_callme | 987 | 2.00 | 26.78 | 31.69 |
Settings /wp-admin/admin.php?page=ringcentral_Admin | 1,060 | 1.99 | 21.72 | 29.16 |
Add Subscribers /wp-admin/admin.php?page=ringcentral_add_subs | 916 | 1.99 | 25.68 | 23.94 |
List Subscribers /wp-admin/admin.php?page=ringcentral_list_subs | 1,081 | 2.00 | 25.57 | 31.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ringcentral_contacts_widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- widget_ring_central_contacts_widget
- widget_ring_central_callme_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ringcentral_list_subs
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ringcentral_contacts_widget is deprecated since version 4.3.0! Use __construct() instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ringcentral_list_subs
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ringcentral_callme_widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ringcentral_list_subs
- > Notice in wp-content/plugins/rccp-free/includes/ringcentral-list-subscribers.inc+188
Undefined variable: message
SRP 0% from 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
Please take a closer look at the following
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/rccp-free/includes/vendor/rmccue/requests/examples/get.php
- > /wp-content/plugins/rccp-free/includes/vendor/rmccue/requests/examples/multiple.php
- > /wp-content/plugins/rccp-free/includes/vendor/rmccue/requests/examples/post.php
- > /wp-content/plugins/rccp-free/includes/RingAPI/demo/sms.php
- > /wp-content/plugins/rccp-free/includes/vendor/rmccue/requests/examples/basic-auth.php
- > /wp-content/plugins/rccp-free/includes/vendor/rmccue/requests/bin/create_pear_package.php
- > /wp-content/plugins/rccp-free/includes/vendor/pubnub/pubnub/src/PubNub/Models/Consumer/Objects/PNMemberData.php
- > /wp-content/plugins/rccp-free/includes/vendor/rmccue/requests/examples/cookie_jar.php
- > /wp-content/plugins/rccp-free/includes/vendor/rmccue/requests/examples/session.php
- > /wp-content/plugins/rccp-free/includes/vendor/pubnub/pubnub/src/PubNub/Models/Consumer/Objects/PNMembershipData.php
- 639× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/rccp-free/includes/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php:21
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/rccp-free/includes/vendor/rmccue/requests/src/Exception/Http/Status401.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rccp-free/includes/vendor/monolog/monolog/tests/Monolog/TestCase.php:14
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/rccp-free/includes/RingAPI/demo/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/rccp-free/includes/RingAPI/demo/_bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/rccp-free/includes/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php:36
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/rccp-free/includes/vendor/rmccue/requests/src/Exception/Http/Status418.php:21
- > PHP Warning
require_once(wp-content/plugins/rccp-free/includes/vendor/ringcentral/ringcentral-php/demo/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/rccp-free/includes/vendor/ringcentral/ringcentral-php/demo/_bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PubNub\\Callbacks\\SubscribeCallback' not found in wp-content/plugins/rccp-free/includes/RingAPI/src/Subscription/Subscription.php:20
- > PHP Fatal error
Uncaught Error: Class 'PubNubTestCase' not found in wp-content/plugins/rccp-free/includes/vendor/pubnub/pubnub/tests/integrational/SslTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/rccp-free/includes/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: ring central communications api tools
rccp-free/ringcentral.php 92% from 13 tests
"RingCentral Communications Plugin - FREE" version 1.5.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rccp-free.php" instead of "ringcentral.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin91,113 lines of code in 1,094 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 945 | 17,626 | 33,806 | 72,882 |
Markdown | 70 | 4,672 | 0 | 13,046 |
JSON | 43 | 0 | 0 | 3,913 |
YAML | 15 | 34 | 7 | 902 |
XML | 9 | 14 | 2 | 204 |
Bourne Shell | 4 | 17 | 2 | 57 |
make | 2 | 11 | 1 | 35 |
CSS | 1 | 3 | 10 | 33 |
JavaScript | 3 | 6 | 12 | 32 |
Dockerfile | 1 | 0 | 0 | 5 |
Python | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 124 | |
Interfaces | 78 | |
Traits | 8 | |
Classes | 843 | |
▷ Abstract classes | 23 | 2.73% |
▷ Concrete classes | 820 | 97.27% |
▷ Final classes | 172 | 20.98% |
Methods | 5,631 | |
▷ Static methods | 536 | 9.52% |
▷ Public methods | 4,564 | 81.05% |
▷ Protected methods | 732 | 13.00% |
▷ Private methods | 335 | 5.95% |
Functions | 783 | |
▷ Named functions | 212 | 27.08% |
▷ Anonymous functions | 571 | 72.92% |
Constants | 498 | |
▷ Global constants | 23 | 4.62% |
▷ Class constants | 475 | 95.38% |
▷ Public constants | 444 | 93.47% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.96MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 53.10KB | 28.91KB | ▼ 45.56% |
assets/screenshot-17.png | 27.48KB | 14.12KB | ▼ 48.63% |
assets/screenshot-7.png | 12.54KB | 7.71KB | ▼ 38.51% |
assets/screenshot-15.png | 8.46KB | 5.02KB | ▼ 40.68% |
assets/screenshot-2.png | 7.35KB | 4.60KB | ▼ 37.46% |