79% hi-deas-website-dialer

Code Review | Hi-Deas Website Dialer

WordPress plugin Hi-Deas Website Dialer scored79%from 54 tests.

About plugin

  • Plugin page: hi-deas-website-d...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2022
  • Latest release: Jan 28, 2023
  • Number of updates: 12
  • Update frequency: every 13.8 days
  • Top authors: hideasng (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.58ms] Passed 4 tests

Analyzing server-side resources used by Hi-Deas Website Dialer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1646.14 ▲7.83
Dashboard /wp-admin3.47 ▲0.1748.85 ▼4.35
Posts /wp-admin/edit.php3.59 ▲0.2351.13 ▼0.14
Add New Post /wp-admin/post-new.php6.05 ▲0.1694.31 ▲0.45
Media Library /wp-admin/upload.php3.40 ▲0.1639.80 ▲1.71
Hi-Deas Website Dialer /wp-admin/options-general.php?page=hi-deas-website-dialer3.3736.33

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Hi-Deas Website Dialer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.26 ▼0.821.87 ▲0.4341.43 ▼14.25
Dashboard /wp-admin2,210 ▲185.83 ▲0.9299.93 ▼8.7441.33 ▼1.52
Posts /wp-admin/edit.php2,096 ▲72.05 ▼0.0944.73 ▲6.7631.72 ▼2.12
Add New Post /wp-admin/post-new.php1,522 ▼1123.08 ▲0.06632.83 ▼4.9664.83 ▲5.61
Media Library /wp-admin/upload.php1,389 ▲44.25 ▲0.07101.48 ▼6.1542.89 ▼4.25
Hi-Deas Website Dialer /wp-admin/options-general.php?page=hi-deas-website-dialer9862.0830.7530.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • HiDeasWebsiteDialerHashedKey
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hi-deas-website-dialer
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hi-deas-website-dialer
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hi-deas-website-dialer
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hi-deas-website-dialer
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant HI_DEAS_WEBSITE_DIALER_PLUGIN_URL - assumed 'HI_DEAS_WEBSITE_DIALER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hi-deas-website-dialer/src/Init.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hi-deas-website-dialer/hi-deas-website-dialer.php:17
    • > PHP Warning
      Use of undefined constant HI_DEAS_WEBSITE_DIALER_PLUGIN_URL - assumed 'HI_DEAS_WEBSITE_DIALER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hi-deas-website-dialer/src/Init.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: hi-deas, business, hideas, website dailer, customer...

hi-deas-website-dialer/hi-deas-website-dialer.php Passed 13 tests

The entry point to "Hi-Deas Website Dialer" version 1.0.1 is a PHP file that has certain tags in its header comment area
42 characters long description:
Hi-Deas Website Dialer for Internet Calls.

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
There were no executable files found in this plugin988 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15209395918
JavaScript218042
JSON20028

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.44
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods63
▷ Static methods2438.10%
▷ Public methods6196.83%
▷ Protected methods00.00%
▷ Private methods23.17%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants5
▷ Global constants5100.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
5 PNG files occupy 0.38MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png144.81KB51.63KB▼ 64.35%
assets/images/phone-call-3.png74.73KB69.63KB▼ 6.83%
assets/images/phone-call-2.png71.04KB28.41KB▼ 60.01%
assets/icon-128x128.png86.38KB35.98KB▼ 58.34%
assets/images/phone-call.png9.85KB4.60KB▼ 53.28%