10% snapcall

Code Review | Snapcall

WordPress plugin Snapcall scored10%from 54 tests.

About plugin

  • Plugin page: snapcall
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 22, 2017
  • Latest release: Sep 27, 2018
  • Number of updates: 21
  • Update frequency: every 14.8 days
  • Top authors: snapcall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /795 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/snapcall/snapcall.php+19
    date_default_timezone_set(): Timezone ID '' is invalid

Server metrics [RAM: ▼1.83MB] [CPU: ▼47.77ms] Passed 4 tests

Server-side resources used by Snapcall
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.314.99 ▼33.79
Dashboard /wp-admin2.17 ▼1.1313.86 ▼32.53
Posts /wp-admin/edit.php2.17 ▼1.186.28 ▼44.05
Add New Post /wp-admin/post-new.php2.17 ▼3.715.97 ▼80.70
Media Library /wp-admin/upload.php2.17 ▼1.055.80 ▼26.75

Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Snapcall
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.041.71 ▲0.0945.38 ▼0.72
Dashboard /wp-admin2,206 ▲144.87 ▼0.04109.88 ▼0.1241.77 ▼4.25
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0338.78 ▼2.0836.76 ▲0.06
Add New Post /wp-admin/post-new.php1,542 ▲918.22 ▼5.29625.70 ▼17.3556.23 ▲1.06
Media Library /wp-admin/upload.php1,391 ▲94.24 ▲0.0497.46 ▲2.5942.34 ▲0.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/snapcall/snapcall.php+19
    date_default_timezone_set(): Timezone ID '' is invalid
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/snapcall/include/login.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/snapcall/include/first_button.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/snapcall/include/register.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: customer relationship, call, ecommerce, conversion rate

snapcall/snapcall.php Passed 13 tests

Analyzing the main PHP file in "Snapcall" version 2.1.0
32 characters long description:
Connect your CMS with Snapcall !

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected874 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP62154418
JavaScript270181
SVG30097
CSS20092
PO File1313586

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
7 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png32.29KB8.91KB▼ 72.40%
assets/screenshot-2.png72.23KB14.82KB▼ 79.48%
assets/img/badge-google-play-en.png13.58KB6.14KB▼ 54.76%
assets/img/snapcall.png4.29KB2.29KB▼ 46.53%
assets/screenshot-3.png52.71KB14.89KB▼ 71.76%