83% woo-thank-you-page-nextmove-lite

Code Review | NextMove Lite - Thank You Page for WooCommerce

WordPress plugin NextMove Lite - Thank You Page for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-thank-you-pag...
  • Plugin version: 2.17.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2017
  • Latest release: Jul 25, 2023
  • Number of updates: 102
  • Update frequency: every 21.3 days
  • Top authors: amans2k (76.47%)xlplugins (24.51%)

Code review

54 tests

User reviews

121 reviews

Install metrics

20,000+ active /287,401 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.62ms] Passed 4 tests

This is a short check of server-side resources used by NextMove Lite - Thank You Page for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.96 ▼3.55
Dashboard /wp-admin3.36 ▲0.0649.99 ▼4.17
Posts /wp-admin/edit.php3.47 ▲0.1247.71 ▼3.56
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.18 ▼3.19
Media Library /wp-admin/upload.php3.28 ▲0.0538.67 ▲6.01

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 589 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

NextMove Lite - Thank You Page for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.43 ▲0.051.95 ▲0.0942.26 ▼1.61
Dashboard /wp-admin2,209 ▲215.85 ▼0.01100.34 ▼20.9342.09 ▼4.48
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0136.82 ▲0.5039.50 ▲6.45
Add New Post /wp-admin/post-new.php1,539 ▲623.31 ▲0.12677.30 ▲18.0765.58 ▲11.03
Media Library /wp-admin/upload.php1,394 ▲64.16 ▼0.04109.49 ▼1.7648.57 ▲4.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

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
  • 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/CMB2_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/helper-functions.php:131
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/woo-thank-you-page-nextmove-lite/admin/includes/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: thank you page, woocommerce, woo thank you page, custom thank you page, woocommerce thank you page...

woo-thank-you-page-nextmove-lite/thank-you-page-for-woocommerce-nextmove-lite.php 85% from 13 tests

The main file in "NextMove Lite - Thank You Page for WooCommerce" v. 2.17.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-thank-you-page-nextmove-lite.php" instead of "thank-you-page-for-woocommerce-nextmove-lite.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 183 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 detected44,534 lines of code in 295 files:
LanguageFilesBlank linesComment linesLines of code
PHP2195,1889,08225,443
CSS323471,2268,583
JavaScript361,3412,1337,816
SVG7002,687
XML1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity19.75
▷ Minimum class complexity1.00
▷ Maximum class complexity307.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes169
▷ Abstract classes105.92%
▷ Concrete classes15994.08%
▷ Final classes10.63%
Methods1,377
▷ Static methods42530.86%
▷ Public methods1,26591.87%
▷ Protected methods1077.77%
▷ Private methods50.36%
Functions51
▷ Named functions4588.24%
▷ Anonymous functions611.76%
Constants23
▷ Global constants1460.87%
▷ Class constants939.13%
▷ Public constants9100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
186 PNG files occupy 0.72MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/map-pins/pin-yellow-solid-9.png4.57KB1.58KB▼ 65.38%
assets/img/map-pins/pin-green-7.png3.11KB0.33KB▼ 89.31%
admin/assets/img/chosen-sprite.png0.50KB0.88KB0.00%
assets/img/map-pins/pin-magenta-2.png3.90KB0.88KB▼ 77.41%
assets/img/map-pins/pin-yellow-2.png3.91KB0.88KB▼ 77.49%