74% newcallcenter-webtocall

Code Review | Webtocall Newcallcenter

WordPress plugin Webtocall Newcallcenter scored74%from 54 tests.

About plugin

  • Plugin page: newcallcenter-web...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2023
  • Latest release: Feb 19, 2023
  • Number of updates: 17
  • Update frequency: every 0.2 days
  • Top authors: newipsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /99 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.11MB] [CPU: ▼18.79ms] Passed 4 tests

Analyzing server-side resources used by Webtocall Newcallcenter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0824.91 ▼15.67
Dashboard /wp-admin3.23 ▼0.0827.99 ▼19.47
Posts /wp-admin/edit.php3.30 ▼0.0630.89 ▼12.85
Add New Post /wp-admin/post-new.php5.54 ▼0.3564.29 ▼27.17
Media Library /wp-admin/upload.php3.25 ▲0.0227.12 ▼8.68

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables
wp_newcallcenter_call_log
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Webtocall Newcallcenter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲15613.71 ▼0.706.10 ▲4.2142.48 ▼3.77
Dashboard /wp-admin2,215 ▲275.86 ▲0.9499.16 ▼18.5639.52 ▼3.77
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0440.04 ▲2.4934.67 ▼0.29
Add New Post /wp-admin/post-new.php1,524 ▲1017.43 ▼0.40638.40 ▲32.6067.44 ▲14.68
Media Library /wp-admin/upload.php1,403 ▲154.19 ▲0.0194.24 ▼5.1941.46 ▼1.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_newcallcenter_call_log
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/newcallcenter-webtocall/public/partials/newcallcenter-public-display.php

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

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: callcenter, newip, webtocall, ncc3

newcallcenter-webtocall/newcallcenter.php 85% from 13 tests

"Webtocall Newcallcenter" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("newcallcenter-webtocall.php" instead of "newcallcenter.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin1,162 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11165471467
CSS24717355
JavaScript2979340

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.14
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot/screenshot.PNG31.77KB15.26KB▼ 51.95%