90% popup-notices-for-woocommerce

Code Review | Popups for WooCommerce: Add to Cart, Checkout & More

WordPress plugin Popups for WooCommerce: Add to Cart, Checkout & More scored90%from 54 tests.

About plugin

  • Plugin page: popup-notices-for...
  • Plugin version: 1.4.6
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 29, 2018
  • Latest release: Sep 26, 2023
  • Number of updates: 53
  • Update frequency: every 35.0 days
  • Top authors: Karzin (84.91%)wpcodefactory (16.98%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /42,708 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.36ms] Passed 4 tests

Server-side resources used by Popups for WooCommerce: Add to Cart, Checkout & More
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0038.04 ▼19.53
Dashboard /wp-admin3.35 ▲0.0057.05 ▲9.03
Posts /wp-admin/edit.php3.40 ▲0.0052.90 ▼1.95
Add New Post /wp-admin/post-new.php5.93 ▲0.00105.56 ▲5.64
Media Library /wp-admin/upload.php3.27 ▲0.0040.07 ▼1.59

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Popups for WooCommerce: Add to Cart, Checkout & More
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.082.03 ▼0.2844.48 ▼17.72
Dashboard /wp-admin2,195 ▲155.59 ▼0.0791.57 ▼2.3844.05 ▲1.74
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0140.67 ▼0.7437.91 ▲1.48
Add New Post /wp-admin/post-new.php1,528 ▼923.34 ▲5.24674.87 ▲23.0261.64 ▼13.00
Media Library /wp-admin/upload.php1,403 ▲34.30 ▲0.1697.69 ▼9.1547.89 ▼2.23

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce, modal, popup, notice, notices

popup-notices-for-woocommerce/popup-notices-for-woocommerce.php 92% from 13 tests

"Popups for WooCommerce: Add to Cart, Checkout & More" version 1.4.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected17,097 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PO File1125125355
Bourne Shell1017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.50
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
▷ Static methods2121.43%
▷ Public methods9091.84%
▷ Protected methods33.06%
▷ Private methods55.10%
▷ Named functions228.57%
▷ Anonymous functions571.43%
▷ Global constants00.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
PNG images were not found in this plugin