83% echbay-phonering-alo

Code Review | EchBay Phonering Alo

WordPress plugin EchBay Phonering Alo scored83%from 54 tests.

About plugin

  • Plugin page: echbay-phonering-alo
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Sep 26, 2017
  • Latest release: Dec 1, 2023
  • Number of updates: 84
  • Update frequency: every 26.9 days
  • Top authors: itvn9online (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /19,335 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼2.12ms] Passed 4 tests

This is a short check of server-side resources used by EchBay Phonering Alo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.52 ▼1.22
Dashboard /wp-admin3.32 ▲0.0151.00 ▼1.56
Posts /wp-admin/edit.php3.37 ▲0.0147.32 ▼4.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.29 ▼0.77
Media Library /wp-admin/upload.php3.24 ▲0.0136.72 ▼0.27
EchBay Phonering Alo /wp-admin/options-general.php?page=echbay-phonering-alo3.2635.61

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for EchBay Phonering Alo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4714.25 ▼0.101.89 ▲0.2042.40 ▼2.93
Dashboard /wp-admin2,199 ▲245.58 ▼0.1188.27 ▼24.6139.98 ▼6.72
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0738.67 ▼2.6832.40 ▼6.83
Add New Post /wp-admin/post-new.php1,529 ▼623.06 ▼0.12655.23 ▲55.9560.29 ▲6.26
Media Library /wp-admin/upload.php1,404 ▲104.17 ▼0.0296.75 ▼5.5141.41 ▼2.04
EchBay Phonering Alo /wp-admin/options-general.php?page=echbay-phonering-alo1,2572.1237.3231.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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 | 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
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/echbay-phonering-alo/includes/main_page.php
    • > /wp-content/plugins/echbay-phonering-alo/epa.php
    • > /wp-content/plugins/echbay-phonering-alo/epa-old.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Phonering Alo display.), #2 (Phonering Alo setting in admin.)
Please take inspiration from this readme.txt

echbay-phonering-alo/epa.php 77% from 13 tests

The main PHP file in "EchBay Phonering Alo" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("echbay-phonering-alo.php" instead of "epa.php")

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 plugin827 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP4017763
JavaScript30242
HTML40016
CSS6006

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity38.50
▷ Minimum class complexity17.00
▷ Maximum class complexity60.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/zalo.png1.06KB1.10KB0.00%
images/call.png0.36KB0.37KB0.00%
images/mail.png0.68KB0.69KB0.00%
images/messenger.png0.73KB0.75KB0.00%