89% oneclick-whatsapp-hello

Code Review | OneClick WP Hello

WordPress plugin OneClick WP Hello scored89%from 54 tests.

About plugin

  • Plugin page: oneclick-whatsapp...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.3.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2019
  • Latest release: Dec 15, 2019
  • Number of updates: 16
  • Update frequency: every 19.3 days
  • Top authors: walterpinem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,023 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.22ms] Passed 4 tests

This is a short check of server-side resources used by OneClick WP Hello
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1549.23 ▲9.45
Dashboard /wp-admin3.48 ▲0.1352.92 ▼1.82
Posts /wp-admin/edit.php3.59 ▲0.1951.44 ▲0.94
Add New Post /wp-admin/post-new.php6.06 ▲0.1391.13 ▼12.92
Media Library /wp-admin/upload.php3.40 ▲0.1337.49 ▲0.93

Server storage [IO: ▲2.47MB] [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: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

OneClick WP Hello: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.20 ▼0.521.88 ▲0.2343.26 ▲2.04
Dashboard /wp-admin2,205 ▲315.76 ▲0.1886.20 ▼4.4081.08 ▲40.76
Posts /wp-admin/edit.php2,125 ▲222.01 ▲0.0134.15 ▼3.5834.90 ▼3.30
Add New Post /wp-admin/post-new.php1,555 ▲2918.18 ▼4.83689.95 ▲29.5161.94 ▼0.07
Media Library /wp-admin/upload.php1,419 ▲194.08 ▼0.15103.85 ▼18.5281.33 ▲33.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: whatsapp, product, woocommerce, contact, whatsapp contact...

oneclick-whatsapp-hello/whatsapp-hello.php 85% from 13 tests

"OneClick WP Hello" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("oneclick-whatsapp-hello.php" instead of "whatsapp-hello.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 216 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected8,967 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
SVG2087,812
PHP65671666
CSS4100258
PO File188166231

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions16
▷ Named functions16100.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
9 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/shortcode.png5.05KB2.18KB▼ 56.80%
assets/images/whatsapp-menu.png0.91KB0.66KB▼ 27.05%
assets/images/simple-whatsapp-button.png5.30KB2.32KB▼ 56.11%
assets/images/display-this-or-hide-that.png4.80KB2.05KB▼ 57.38%
assets/images/whatsapp-icon.png0.79KB0.98KB0.00%