68% podamibe-twilio-private-call

Code Review | Podamibe Twilio Private Call

WordPress plugin Podamibe Twilio Private Call scored68%from 54 tests.

About plugin

  • Plugin page: podamibe-twilio-p...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.0
  • WordPress version: 6.3.1
  • First release: Aug 3, 2017
  • Latest release: May 23, 2019
  • Number of updates: 3
  • Update frequency: every 219.3 days
  • Top authors: podamibe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /793 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.18ms] Passed 4 tests

Server-side resources used by Podamibe Twilio Private Call
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0745.02 ▲7.87
Dashboard /wp-admin3.37 ▲0.0655.90 ▲8.54
Posts /wp-admin/edit.php3.48 ▲0.1254.15 ▼1.25
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.97 ▼8.66
Media Library /wp-admin/upload.php3.29 ▲0.0640.12 ▲1.32
Settings /wp-admin/admin.php?page=pod_twilio_settings3.2332.32
Supported Countries /wp-admin/admin.php?page=pod_twilio_supported_countries3.2637.16
Twilio Users /wp-admin/admin.php?page=pod_twilio_users3.2536.15

Server storage [IO: ▲4.03MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 695 new files
Database: 5 new tables, 11 new options
New tables
wp_pod_twilio_call_duration
wp_pod_twilio_users
wp_pod_twilio_user_payment_history
wp_pod_twilio_supported_countries
wp_pod_twilio_contact_list
New WordPress options
widget_pod_twilio_login_widget
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
POD_TWILIO_DB_VERSION
pod_twilio_paypal_ipn_page_id
can_compress_scripts
db_upgraded
pod_twilio_dial_callback_page_id
widget_recent-comments
...

Browser metrics Passed 4 tests

An overview of browser requirements for Podamibe Twilio Private Call
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲18013.44 ▼0.9111.02 ▲8.2241.48 ▼7.53
Dashboard /wp-admin2,229 ▲525.58 ▼0.0085.27 ▼6.9039.53 ▼3.25
Posts /wp-admin/edit.php2,131 ▲311.99 ▼0.0035.94 ▼2.5035.59 ▲1.41
Add New Post /wp-admin/post-new.php1,551 ▲2522.93 ▼0.93664.85 ▼50.5952.88 ▼7.92
Media Library /wp-admin/upload.php1,431 ▲344.25 ▼0.0299.15 ▼12.7744.26 ▼6.51
Settings /wp-admin/admin.php?page=pod_twilio_settings9041.9925.2928.88
Supported Countries /wp-admin/admin.php?page=pod_twilio_supported_countries1,1991.7526.3928.71
Twilio Users /wp-admin/admin.php?page=pod_twilio_users8252.0323.0725.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables detected upon uninstall: 5 tables
    • wp_pod_twilio_contact_list
    • wp_pod_twilio_call_duration
    • wp_pod_twilio_user_payment_history
    • wp_pod_twilio_users
    • wp_pod_twilio_supported_countries
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_pod_twilio_login_widget
    • widget_recent-posts
    • POD_TWILIO_DB_VERSION
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pod_twilio_settings
    • > Notice in wp-content/plugins/podamibe-twilio-private-call/admin/twilio-settings.php+152
    Trying to access array offset on value of type bool

SRP 50% 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
  • 614× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelList.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Rest/Api/V2010/Account/SandboxInstance.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Rest/Api/V2010/Account/MessageOptions.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Rest/Api/V2010/Account/ConferenceList.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Tests/Integration/Monitor/V1/AlertTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingInstance.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Rest/Lookups/V1/PhoneNumberContext.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Tests/Integration/Api/V2010/Account/Call/NotificationTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/podamibe-twilio-private-call/includes/twilio-php-master/Twilio/Rest/Api/V2010/Account/NewSigningKeyPage.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: podamibe, twilio, private call, twilio call

podamibe-twilio-private-call/pod-twilio-call.php 85% from 13 tests

The primary PHP file in "Podamibe Twilio Private Call" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("podamibe-twilio-private-call.php" instead of "pod-twilio-call.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected53,098 lines of code in 686 files:
LanguageFilesBlank linesComment linesLines of code
PHP66610,26528,05046,811
SVG1002,671
CSS326152,454
Markdown63150780
make2479246
JavaScript261645
Python17223531
JSON10026
Bourne Shell10010
YAML10010
XML1017
reStructuredText1677

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.76
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.49
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces94
Interfaces2
Traits0
Classes782
▷ Abstract classes8510.87%
▷ Concrete classes69789.13%
▷ Final classes00.00%
Methods4,376
▷ Static methods1523.47%
▷ Public methods3,89889.08%
▷ Protected methods4179.53%
▷ Private methods611.39%
Functions21
▷ Named functions1780.95%
▷ Anonymous functions419.05%
Constants24
▷ Global constants1458.33%
▷ Class constants1041.67%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected