10% shopcode-popup-profile-builder

Code Review | ShopCode Popup Profile Builder

WordPress plugin ShopCode Popup Profile Builder scored10%from 54 tests.

About plugin

  • Plugin page: shopcode-popup-pr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 3, 2018
  • Latest release: Dec 3, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: shopcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /474 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/shopcode-popup-profile-builder/shopcode-popup-profile-builder.php+346
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼69.81ms] Passed 4 tests

Server-side resources used by ShopCode Popup Profile Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.58 ▼36.99
Dashboard /wp-admin2.05 ▼1.305.90 ▼64.97
Posts /wp-admin/edit.php2.05 ▼1.316.72 ▼46.78
Add New Post /wp-admin/post-new.php2.05 ▼3.845.61 ▼130.49
Media Library /wp-admin/upload.php2.05 ▼1.186.51 ▼32.12

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ShopCode Popup Profile Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.90 ▼0.5012.11 ▲10.2744.50 ▲0.96
Dashboard /wp-admin2,218 ▲155.84 ▲0.8798.54 ▼52.5237.77 ▼19.43
Posts /wp-admin/edit.php2,103 ▲61.99 ▼0.0137.19 ▼4.0035.72 ▲3.13
Add New Post /wp-admin/post-new.php1,545 ▲1423.24 ▲0.02663.78 ▲14.0052.02 ▼11.27
Media Library /wp-admin/upload.php1,403 ▲34.12 ▼0.13109.43 ▲1.3149.51 ▲3.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/shopcode-popup-profile-builder/shopcode-popup-profile-builder.php+346
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_shopcode-popup-profile-builder
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% 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:
  • Stable tag: Empty value
The official readme.txt is a good inspiration

shopcode-popup-profile-builder/shopcode-popup-profile-builder.php Passed 13 tests

This is the main PHP file of "ShopCode Popup Profile Builder" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
ShopCode show product WooCommerce owl carousel on categories responsive

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin17,011 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS71,1974110,168
JavaScript51,8201,7076,794
PHP152149

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin