84% connect-ez-click-to-call

Code Review | Connect-EZ Click-To-Call

WordPress plugin Connect-EZ Click-To-Call scored84%from 54 tests.

About plugin

  • Plugin page: connect-ez-click-...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.4
  • WordPress version: 6.3.1
  • First release: Mar 26, 2022
  • Latest release: Nov 7, 2023
  • Number of updates: 26
  • Update frequency: every 22.8 days
  • Top authors: connectez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,017 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.96ms] Passed 4 tests

Server-side resources used by Connect-EZ Click-To-Call
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.90 ▼4.11
Dashboard /wp-admin3.39 ▲0.0846.75 ▼7.48
Posts /wp-admin/edit.php3.44 ▲0.0849.00 ▲3.69
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.93 ▼7.36
Media Library /wp-admin/upload.php3.31 ▲0.0835.89 ▲3.11
/wp-admin/index.php?page=connect-ez-setup-wizard3.1426.96
Connect EZ Wp /wp-admin/options-general.php?page=connect-ez-settings-page3.2730.86

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Connect-EZ Click-To-Call: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.33 ▼0.011.78 ▼0.0736.22 ▼9.28
Dashboard /wp-admin2,202 ▲225.62 ▼0.0491.69 ▼0.5440.58 ▼0.13
Posts /wp-admin/edit.php2,107 ▲71.96 ▲0.0040.77 ▼0.1636.26 ▲3.07
Add New Post /wp-admin/post-new.php1,534 ▲823.51 ▲0.28618.13 ▼31.0061.73 ▲9.76
Media Library /wp-admin/upload.php1,401 ▲44.25 ▲0.02100.54 ▼0.7444.23 ▲1.91
/wp-admin/index.php?page=connect-ez-setup-wizard600.410.0911.46
Connect EZ Wp /wp-admin/options-general.php?page=connect-ez-settings-page9302.0324.7726.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/connect-ez-click-to-call/connect-ez-wp.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

connect-ez-click-to-call/connect-ez-wp.php 92% from 13 tests

The main PHP file in "Connect-EZ Click-To-Call" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("connect-ez-click-to-call.php" instead of "connect-ez-wp.php")

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
Good job! No executable or dangerous file extensions detected826 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP59555502
CSS2307181
JavaScript415586
HTML212757

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/callee1.png22.23KB10.97KB▼ 50.63%
img/callee2.png12.42KB11.08KB▼ 10.85%
img/callee3.png18.41KB8.04KB▼ 56.33%