68% telecomsxchange

Code Review | TelecomsXChange

WordPress plugin TelecomsXChange scored68%from 54 tests.

About plugin

  • Plugin page: telecomsxchange
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 28, 2018
  • Latest release: Mar 30, 2018
  • Number of updates: 17
  • Update frequency: every 0.1 days
  • Top authors: telecomsxchange (100%)Otto42 (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /763 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.02ms] Passed 4 tests

Server-side resources used by TelecomsXChange
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.72 ▼1.74
Dashboard /wp-admin3.36 ▲0.0144.31 ▼14.93
Posts /wp-admin/edit.php3.41 ▲0.0543.06 ▼3.38
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.50 ▼0.04
Media Library /wp-admin/upload.php3.28 ▲0.0538.18 ▲3.35
TelecomsXChange /wp-admin/options-general.php?page=TelecomsXChange-Settings3.2230.63

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
wp_tcxc_uses
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
tcxc
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for TelecomsXChange
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.45 ▲0.101.74 ▲0.2935.55 ▼2.70
Dashboard /wp-admin2,202 ▲215.65 ▼0.0484.30 ▼19.1435.01 ▼3.35
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0935.46 ▼3.1331.86 ▼5.05
Add New Post /wp-admin/post-new.php1,529 ▼223.68 ▲0.57614.83 ▼11.4075.86 ▲5.99
Media Library /wp-admin/upload.php1,398 ▲74.17 ▲0.0297.41 ▼0.7141.66 ▲0.58
TelecomsXChange /wp-admin/options-general.php?page=TelecomsXChange-Settings1,1392.1525.2441.17

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
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_tcxc_uses
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • tcxc
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=TelecomsXChange-Settings
    • > Notice in wp-content/plugins/telecomsxchange/TelecomsXChange.php+40
    Undefined index: login
    • > GET request to /wp-admin/options-general.php?page=TelecomsXChange-Settings
    • > Notice in wp-content/plugins/telecomsxchange/TelecomsXChange.php+48
    Undefined index: api_key
    • > GET request to /wp-admin/options-general.php?page=TelecomsXChange-Settings
    • > Notice in wp-content/plugins/telecomsxchange/TelecomsXChange.php+56
    Undefined index: i_account
    • > GET request to /wp-admin/options-general.php?page=TelecomsXChange-Settings
    • > Notice in wp-content/plugins/telecomsxchange/TelecomsXChange.php+64
    Undefined index: cld1
    • > GET request to /wp-admin/options-general.php?page=TelecomsXChange-Settings
    • > Notice in wp-content/plugins/telecomsxchange/TelecomsXChange.php+72
    Undefined index: cli2
    • > GET request to /wp-admin/options-general.php?page=TelecomsXChange-Settings
    • > Notice in wp-content/plugins/telecomsxchange/TelecomsXChange.php+80
    Undefined index: car1
    • > GET request to /wp-admin/options-general.php?page=TelecomsXChange-Settings
    • > Notice in wp-content/plugins/telecomsxchange/TelecomsXChange.php+88
    Undefined index: car2
    • > GET request to /wp-admin/options-general.php?page=TelecomsXChange-Settings
    • > Notice in wp-content/plugins/telecomsxchange/TelecomsXChange.php+144
    Undefined index: btn_css

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/telecomsxchange/TelecomsXChange.php

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings Page, where you set you API credentials, phone number, customize user messages, usage limit and custom button style.), #2 (the default button displayed using the shortcode.)
The official readme.txt is a good inspiration

telecomsxchange/TelecomsXChange.php 85% from 13 tests

The principal PHP file in "TelecomsXChange" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("telecomsxchange.php" instead of "TelecomsXChange.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 279 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin354 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1410310
JavaScript11344

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png101.32KB30.56KB▼ 69.83%
screenshot-2.png17.08KB4.72KB▼ 72.34%