10% woocommerce-apg-sms-notifications

Code Review | WC - APG SMS Notifications

WordPress plugin WC - APG SMS Notifications scored10%from 54 tests.

About plugin

  • Plugin page: woocommerce-apg-s...
  • Plugin version: 2.26
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Dec 2, 2013
  • Latest release: Jun 23, 2023
  • Number of updates: 209
  • Update frequency: every 16.7 days
  • Top authors: artprojectgroup (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

900+ active /72,327 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.92ms] Passed 4 tests

Server-side resources used by WC - APG SMS Notifications
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.10 ▲1.97
Dashboard /wp-admin3.31 ▼0.0451.04 ▼15.72
Posts /wp-admin/edit.php3.36 ▲0.0047.94 ▼2.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.87 ▼7.42
Media Library /wp-admin/upload.php3.23 ▲0.0036.80 ▲4.43

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WC - APG SMS Notifications
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.17 ▼0.471.80 ▼0.4644.21 ▼0.52
Dashboard /wp-admin2,195 ▲155.64 ▼0.0494.66 ▼4.3642.71 ▼1.79
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0433.30 ▼3.5834.81 ▲1.37
Add New Post /wp-admin/post-new.php1,528 ▲223.20 ▼0.27665.59 ▲49.4360.92 ▲8.79
Media Library /wp-admin/upload.php1,400 ▲64.21 ▲0.0194.83 ▼14.0743.72 ▼0.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-apg-sms-notifications/includes/formulario.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-apg-sms-notifications/includes/cuadro-informacion.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 43 tag instead of maximum 10
The official readme.txt is a good inspiration

woocommerce-apg-sms-notifications/apg-sms.php 85% from 13 tests

The main PHP file in "WC - APG SMS Notifications" ver. 2.26 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-apg-sms-notifications.php" instead of "apg-sms.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 279 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,523 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP82011262,138
CSS21022667
Markdown11620448
SVG200270

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.56
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions3196.88%
▷ Anonymous functions13.12%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin