72% automation-web-platform

Code Review | WAWP Automation Web Platform Notifications for WooCommerce

WordPress plugin WAWP Automation Web Platform Notifications for WooCommerce scored72%from 54 tests.

About plugin

  • Plugin page: automation-web-pl...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 24
  • Update frequency: every 9.8 days
  • Top authors: 101gen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /538 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.46MB] [CPU: ▼8.07ms] Passed 4 tests

Server-side resources used by WAWP Automation Web Platform Notifications for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4743.15 ▼6.39
Dashboard /wp-admin3.77 ▲0.4647.28 ▼1.45
Posts /wp-admin/edit.php3.88 ▲0.5248.84 ▼8.59
Add New Post /wp-admin/post-new.php6.35 ▲0.4683.49 ▼15.85
Media Library /wp-admin/upload.php3.69 ▲0.4638.32 ▲3.90
WAWP /wp-admin/admin.php?page=awp3.6940.24
Notification /wp-admin/admin.php?page=WAWP3.5629.26
Message Logs /wp-admin/admin.php?page=awp-message-log3.6958.05

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics 75% from 4 tests

WAWP Automation Web Platform Notifications for WooCommerce: an overview of browser usage
You may want to improve the following
  • Nodes: You must limit the number of DOM nodes under 25,000 (currently 56,072 on /wp-admin/admin.php?page=awp)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲7914.75 ▲0.021.89 ▼0.4843.34 ▼5.16
Dashboard /wp-admin2,235 ▲615.52 ▼0.1793.43 ▼7.1774.84 ▲18.17
Posts /wp-admin/edit.php2,143 ▲401.97 ▼0.0638.63 ▼1.2033.99 ▼6.05
Add New Post /wp-admin/post-new.php1,570 ▲4423.02 ▼0.19587.76 ▼85.07168.10 ▲108.94
Media Library /wp-admin/upload.php1,443 ▲404.22 ▼0.0497.84 ▲0.8370.83 ▲28.33
WAWP /wp-admin/admin.php?page=awp56,07216.31579.5686.41
Notification /wp-admin/admin.php?page=WAWP280.410.143.89
Message Logs /wp-admin/admin.php?page=awp-message-log1,0914.1452.6181.29

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/automation-web-platform/awp-update.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automation-web-platform/awp-main.php:1098
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/automation-web-platform/awp-cf7.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/automation-web-platform/awp-elementor.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/automation-web-platform/awp-caldera.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automation-web-platform/awp-main.php:1098

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=WAWP
    • > Network (severe)
    wp-admin/admin.php?page=WAWP - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: whatsapp notification, woocoomerce, whatsapp, notification messages, wawp...

automation-web-platform/awp.php 77% from 13 tests

The primary PHP file in "WAWP Automation Web Platform Notifications for WooCommerce" version 1.2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("automation-web-platform.php" instead of "awp.php")

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
There were no executable files found in this plugin46,410 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1135555640,723
PO File79089472,300
PHP9165451,829
CSS311541,558

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity63.25
▷ Minimum class complexity2.00
▷ Maximum class complexity190.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods61
▷ Static methods11.64%
▷ Public methods6098.36%
▷ Protected methods00.00%
▷ Private methods11.64%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png38.88KB21.29KB▼ 45.25%
assets/img/flags.png69.20KB23.42KB▼ 66.16%
assets/img/menu.png0.91KB0.65KB▼ 28.66%