84% callcap-webmatch

Code Review | Callcap Webmatch

WordPress plugin Callcap Webmatch scored84%from 54 tests.

About plugin

  • Plugin page: callcap-webmatch
  • Plugin version: 1.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6.2
  • WordPress version: 6.3.1
  • First release: Dec 10, 2015
  • Latest release: Aug 1, 2017
  • Number of updates: 23
  • Update frequency: every 26.4 days
  • Top authors: sethduncan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,161 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.41ms] Passed 4 tests

Analyzing server-side resources used by Callcap Webmatch
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.23 ▼6.85
Dashboard /wp-admin3.31 ▲0.0145.99 ▼5.18
Posts /wp-admin/edit.php3.36 ▲0.0146.89 ▼0.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.39 ▼9.05
Media Library /wp-admin/upload.php3.23 ▲0.0134.86 ▲0.01

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Callcap Webmatch: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.61 ▼0.742.33 ▲0.2540.57 ▼3.06
Dashboard /wp-admin2,224 ▲334.84 ▼1.07108.16 ▲3.6541.96 ▼3.69
Posts /wp-admin/edit.php2,107 ▲152.02 ▼0.0242.46 ▲7.0040.72 ▲10.62
Add New Post /wp-admin/post-new.php1,552 ▲1918.11 ▼5.18609.54 ▼69.3755.95 ▲2.63
Media Library /wp-admin/upload.php1,406 ▲154.20 ▼0.0098.07 ▼5.8342.80 ▼0.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/callcap-webmatch/webmatch.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/callcap-webmatch/webmatch-form.php:3

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 93% from 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
3 plugin tags: phone tracking, phone numbers, call tracking

callcap-webmatch/webmatch.php 85% from 13 tests

Analyzing the main PHP file in "Callcap Webmatch" version 1.6.5
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("callcap-webmatch.php" instead of "webmatch.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected401 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39342275
CSS120093
Markdown117033

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin