84% woocommerce-popup-extension

Code Review | Woocommerce Product Pop Up

WordPress plugin Woocommerce Product Pop Up scored 84% from 54 tests.

About plugin

  • Plugin page: woocommerce-popup...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.8.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Sep 4, 2017
  • Number of updates: 17
  • Update frequency: every 48.5 days
  • Top authors: iwcontribution (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 16,600 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.07MB] [CPU: ▼5.37ms] Passed 4 tests

A check of server-side resources used by Woocommerce Product Pop Up
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.22 ▼1.62
Dashboard /wp-admin3.38 ▲0.0842.56 ▼4.76
Posts /wp-admin/edit.php3.41 ▲0.0648.97 ▼0.03
Add New Post /wp-admin/post-new.php6.05 ▲0.1781.39 ▼13.02
Media Library /wp-admin/upload.php3.32 ▲0.0935.58 ▼2.09

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce Product Pop Up
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲15913.62 ▼0.926.04 ▲4.3447.13 ▲3.30
Dashboard /wp-admin2,209 ▲244.81 ▼1.00111.78 ▲10.1641.27 ▼4.97
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0241.67 ▲4.8137.58 ▲5.33
Add New Post /wp-admin/post-new.php1,543 ▲1918.71 ▼4.37598.21 ▼51.7960.28 ▲6.47
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.01102.19 ▲0.7144.80 ▼3.91

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woocommerce-popup-extension/extension-plugin.php:13

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: You can look at the official readme.txt

woocommerce-popup-extension/extension-plugin.php 92% from 13 tests

The main PHP file in "Woocommerce Product Pop Up" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-popup-extension.php" instead of "extension-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin163 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS12197
JavaScript161134
PHP17732

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/left-arrow.png0.25KB0.33KB0.00%
images/right-arrow.png0.24KB0.33KB0.00%