90% aweos-dynamic-phone-number

Code Review | AWEOS Dynamic Phone Number

WordPress plugin AWEOS Dynamic Phone Number scored90%from 54 tests.

About plugin

  • Plugin page: aweos-dynamic-pho...
  • Plugin version: 1.2.2
  • PHP compatiblity: 6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2018
  • Latest release: Oct 12, 2023
  • Number of updates: 13
  • Update frequency: every 156.1 days
  • Top authors: aweos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /844 total downloads


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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼11.70ms] Passed 4 tests

Analyzing server-side resources used by AWEOS Dynamic Phone Number
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0245.96 ▲2.68
Dashboard /wp-admin3.59 ▼0.0552.37 ▼18.90
Posts /wp-admin/edit.php3.70 ▲0.0251.90 ▲0.28
Add New Post /wp-admin/post-new.php6.17 ▲0.0296.28 ▼21.99
Media Library /wp-admin/upload.php3.51 ▲0.0238.01 ▼6.18

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by AWEOS Dynamic Phone Number
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.30 ▼0.321.94 ▲0.1845.74 ▲3.67
Dashboard /wp-admin2,211 ▲315.66 ▲0.0390.86 ▲4.3841.23 ▼6.66
Posts /wp-admin/edit.php2,116 ▲162.01 ▼0.0540.97 ▲3.5035.24 ▲0.08
Add New Post /wp-admin/post-new.php1,563 ▲3223.52 ▲0.28609.83 ▼35.8254.98 ▲8.95
Media Library /wp-admin/upload.php1,413 ▲134.20 ▲0.06100.91 ▼10.9842.96 ▼6.47

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Get a quick overview)
You can look at the official readme.txt

aweos-dynamic-phone-number/aweos-dynamic-phone-number.php Passed 13 tests

The main file in "AWEOS Dynamic Phone Number" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Define a Dynamic Phone Number. Choose the numbers in our custom settings page. Example: [dnum]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected102 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG files were detected