84% woo-awesome-checkout-popup-form

Code Review | Checkout Popup

WordPress plugin Checkout Popup scored84%from 54 tests.

About plugin

  • Plugin page: woo-awesome-check...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 17, 2017
  • Latest release: Mar 22, 2018
  • Number of updates: 18
  • Update frequency: every 18.9 days
  • Top authors: hellomohsinkhan (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /1,855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Checkout Popup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.88 ▼4.02
Dashboard /wp-admin3.31 ▲0.0145.15 ▼6.51
Posts /wp-admin/edit.php3.36 ▲0.0147.74 ▼1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.30 ▼11.23
Media Library /wp-admin/upload.php3.23 ▲0.0135.01 ▲3.24

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

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

Browser metrics Passed 4 tests

Checkout Popup: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.66 ▼0.641.63 ▼0.2241.72 ▼10.28
Dashboard /wp-admin2,206 ▲155.79 ▼0.03104.11 ▼2.5440.49 ▼8.90
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0037.06 ▲0.9432.57 ▼1.75
Add New Post /wp-admin/post-new.php1,533 ▼923.20 ▲4.99669.72 ▲28.0653.05 ▼13.36
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.02100.41 ▼1.9845.31 ▲3.71

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

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-awesome-checkout-popup-form/checkout-popup.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/woo-awesome-checkout-popup-form/checkout-form.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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes: The official readme.txt might help

woo-awesome-checkout-popup-form/checkout-popup.php 92% from 13 tests

This is the main PHP file of "Checkout Popup" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-awesome-checkout-popup-form.php" instead of "checkout-popup.php")

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
Everything looks great! No dangerous files found in this plugin301 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8101118295
JavaScript1106

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin