78% just1stepahead-for-woocommerce

Code Review | Just1StepAhead SMS Notifications for WooCommerce

WordPress plugin Just1StepAhead SMS Notifications for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: just1stepahead-fo...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 10, 2018
  • Latest release: Jul 12, 2018
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: isaackwan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,147 total downloads

Benchmarks

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.13MB] [CPU: ▲0.53ms] Passed 4 tests

This is a short check of server-side resources used by Just1StepAhead SMS Notifications for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.13 ▲0.95
Dashboard /wp-admin3.43 ▲0.1352.11 ▲0.74
Posts /wp-admin/edit.php3.54 ▲0.1947.87 ▼1.57
Add New Post /wp-admin/post-new.php6.03 ▲0.14100.12 ▲2.01
Media Library /wp-admin/upload.php3.35 ▲0.1341.01 ▲5.10
J1SA for WooCommerce /wp-admin/options-general.php?page=j1sa-woocommerce3.3237.34

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 1,379 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Just1StepAhead SMS Notifications for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.23 ▼1.154.73 ▲3.1142.49 ▼0.44
Dashboard /wp-admin2,246 ▲526.07 ▲1.06103.58 ▼12.3343.76 ▼4.20
Posts /wp-admin/edit.php2,122 ▲222.02 ▲0.0135.92 ▼3.1733.56 ▼6.61
Add New Post /wp-admin/post-new.php1,383 ▼14816.75 ▼6.32510.22 ▼96.9353.22 ▲9.72
Media Library /wp-admin/upload.php1,419 ▲224.22 ▼0.03100.29 ▼4.8941.02 ▼6.10
J1SA for WooCommerce /wp-admin/options-general.php?page=j1sa-woocommerce1,1722.0423.3329.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/just1stepahead-for-woocommerce/j1sa-woocommerce.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Interface 'libphonenumber\\MetadataSourceInterface' not found in wp-content/plugins/just1stepahead-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/MultiFileMetadataSourceImpl.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'libphonenumber\\Leniency\\AbstractLeniency' not found in wp-content/plugins/just1stepahead-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/Leniency/Valid.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'libphonenumber\\Leniency\\AbstractLeniency' not found in wp-content/plugins/just1stepahead-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/Leniency/ExactGrouping.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'libphonenumber\\Leniency\\AbstractLeniency' not found in wp-content/plugins/just1stepahead-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/Leniency/StrictGrouping.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'libphonenumber\\Leniency\\AbstractLeniency' not found in wp-content/plugins/just1stepahead-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/Leniency/Possible.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'libphonenumber\\MetadataLoaderInterface' not found in wp-content/plugins/just1stepahead-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/DefaultMetadataLoader.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'libphonenumber\\MatcherAPIInterface' not found in wp-content/plugins/just1stepahead-for-woocommerce/vendor/giggsey/libphonenumber-for-php/src/RegexBasedMatcher.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
2 plugin tags: just1stepahead, woocommerce

just1stepahead-for-woocommerce/j1sa-woocommerce.php 85% from 13 tests

The entry point to "Just1StepAhead SMS Notifications for WooCommerce" version 0.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("just1stepahead-for-woocommerce.php" instead of "j1sa-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected612,656 lines of code in 1,333 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,3213,05316,485612,062
JSON410254
Markdown2840196
Ant112055
JavaScript17733
YAML27231
XML13015
CSS10010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.92
▷ Minimum class complexity1.00
▷ Maximum class complexity369.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces7
Interfaces3
Traits0
Classes45
▷ Abstract classes12.22%
▷ Concrete classes4497.78%
▷ Final classes00.00%
Methods506
▷ Static methods7214.23%
▷ Public methods41281.42%
▷ Protected methods7013.83%
▷ Private methods244.74%
Functions12
▷ Named functions18.33%
▷ Anonymous functions1191.67%
Constants119
▷ Global constants00.00%
▷ Class constants119100.00%
▷ Public constants119100.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
There were not PNG files found in your plugin