89% wp-window-shopper

Code Review | WP Window Shopper - Review & Product Boxes For Affiliate Websites

WordPress plugin WP Window Shopper - Review & Product Boxes For Affiliate Websites scored89%from 54 tests.

About plugin

  • Plugin page: wp-window-shopper
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.5
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Oct 14, 2020
  • Number of updates: 23
  • Update frequency: every 5.7 days
  • Top authors: wpwindowshopper (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /1,268 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲11.30ms] Passed 4 tests

Server-side resources used by WP Window Shopper - Review & Product Boxes For Affiliate Websites
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2051.53 ▲12.25
Dashboard /wp-admin3.37 ▲0.0760.44 ▲13.60
Posts /wp-admin/edit.php3.48 ▲0.1367.38 ▲19.52
Add New Post /wp-admin/post-new.php5.97 ▲0.0896.64 ▼0.18
Media Library /wp-admin/upload.php3.29 ▲0.0652.41 ▲20.83

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 118 new files
Database: 3 new tables, 6 new options
New tables
wp_wpws_categories
wp_wpws_templates
wp_wpws_product_boxes
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Window Shopper - Review & Product Boxes For Affiliate Websites
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.22 ▼1.392.17 ▲0.3836.46 ▼7.98
Dashboard /wp-admin2,222 ▲735.85 ▲0.23101.64 ▼13.5239.92 ▼1.70
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.1533.98 ▼7.2331.69 ▼5.68
Add New Post /wp-admin/post-new.php1,555 ▲3518.23 ▼4.70652.45 ▼4.8051.75 ▼2.41
Media Library /wp-admin/upload.php1,407 ▲194.21 ▼0.0295.14 ▼9.6444.21 ▼0.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

wp-window-shopper/wp-window-shopper.php Passed 13 tests

This is the main PHP file of "WP Window Shopper - Review & Product Boxes For Affiliate Websites" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
103 characters long description:
WP Window Shopper allows you to create and manage beautiful product boxes without any coding knowledge.

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
There were no executable files found in this plugin20,622 lines of code in 99 files:
LanguageFilesBlank linesComment linesLines of code
JSON60016,047
JavaScript882781074,190
PHP32132370
HTML232015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
7 PNG files occupy 0.60MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wpp-admin/public/wpws_banner.png46.21KB24.25KB▼ 47.51%
assets/previews.png94.62KB34.98KB▼ 63.03%
wpp-admin/build/wpws_icon.png10.19KB5.65KB▼ 44.52%
wpp-admin/build/wpws_banner.png46.21KB24.25KB▼ 47.51%
assets/templates.png191.54KB65.86KB▼ 65.61%