10% excitel-click-to-call

Code Review | Excitel - Click to call

WordPress plugin Excitel - Click to call scored10%from 54 tests.

About plugin

  • Plugin page: excitel-click-to-...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Feb 22, 2019
  • Number of updates: 56
  • Update frequency: every 26.3 days
  • Top authors: excitel (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /9,061 total downloads

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
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/excitel-click-to-call/class-voipApp.php+34
    Non-static method VoipApp::get_table_handle() should not be called statically

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.16ms] Passed 4 tests

Analyzing server-side resources used by Excitel - Click to call
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.95 ▲0.07
Dashboard /wp-admin3.32 ▲0.0252.66 ▲0.40
Posts /wp-admin/edit.php3.44 ▲0.0848.01 ▼3.64
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.67 ▼9.46
Media Library /wp-admin/upload.php3.25 ▲0.0237.01 ▲0.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables
wp_excitel_
New WordPress options
myplug_modify_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Excitel - Click to call
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲5314.21 ▼0.192.18 ▼0.0243.28 ▲1.17
Dashboard /wp-admin2,231 ▲605.58 ▲0.0584.29 ▼6.3868.32 ▲23.97
Posts /wp-admin/edit.php2,145 ▲421.97 ▼0.0435.63 ▼5.6635.67 ▼0.20
Add New Post /wp-admin/post-new.php1,572 ▲4621.72 ▼1.39759.13 ▲74.5148.51 ▼9.45
Media Library /wp-admin/upload.php1,445 ▲454.21 ▲0.11117.53 ▲10.6272.75 ▲28.18

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
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/excitel-click-to-call/class-voipApp.php+61
    Non-static method VoipApp::get_table_handle() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'VoipApp_Abstract' not found in wp-content/plugins/excitel-click-to-call/class-voipApp-admin.php:3
    • > PHP Parse error
      syntax error, unexpected 'else' (T_ELSE) in wp-content/plugins/excitel-click-to-call/views/admin.php on line 96
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/excitel-click-to-call/excitel-click-to-call.php:31

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

excitel-click-to-call/excitel-click-to-call.php 85% from 13 tests

The primary PHP file in "Excitel - Click to call" version 1.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: The domain path must begin with a forward slash character ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected687 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP56734419
PO File24848156
CSS114060
SVG30252

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods519.23%
▷ Public methods2284.62%
▷ Protected methods13.85%
▷ Private methods311.54%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logot_Images/logot_ImgID3.png13.61KB2.95KB▼ 78.30%
images/logot_Images/logot_ImgID1.png1.24KB0.75KB▼ 39.59%
images/logot_Images/logot_ImgID2.png15.14KB3.37KB▼ 77.77%