77% pbo-move-to-wishlist-for-yith-woocommerce-wishlist

Code Review | PBO Move to Wishlist for YITH WooCommerce Wishlist

WordPress plugin PBO Move to Wishlist for YITH WooCommerce Wishlist scored77%from 54 tests.

About plugin

  • Plugin page: pbo-move-to-wishl...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2015
  • Latest release: Oct 13, 2015
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: Piotr Boguslawski (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼13.28ms] Passed 4 tests

Analyzing server-side resources used by PBO Move to Wishlist for YITH WooCommerce Wishlist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.41 ▼5.74
Dashboard /wp-admin3.33 ▼0.0150.41 ▼15.89
Posts /wp-admin/edit.php3.38 ▲0.0348.91 ▼11.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.43 ▼19.49
Media Library /wp-admin/upload.php3.26 ▲0.0338.39 ▲1.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for PBO Move to Wishlist for YITH WooCommerce Wishlist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4913.19 ▼1.171.97 ▲0.0142.99 ▼1.07
Dashboard /wp-admin2,201 ▲245.52 ▼0.1386.64 ▼9.7350.38 ▲6.86
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0237.32 ▲0.5234.71 ▼1.10
Add New Post /wp-admin/post-new.php1,532 ▼423.17 ▲4.96659.34 ▼15.3463.63 ▼7.44
Media Library /wp-admin/upload.php1,406 ▲94.25 ▲0.1099.74 ▼6.6346.98 ▲3.27

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pbo-move-to-wishlist-for-yith-woocommerce-wishlist/templates/link-to-wishlist-page.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: wishlist_url_label in wp-content/plugins/pbo-move-to-wishlist-for-yith-woocommerce-wishlist/templates/link-to-wishlist-page.php on line 11
    • > PHP Notice
      Undefined variable: wishlist_url in wp-content/plugins/pbo-move-to-wishlist-for-yith-woocommerce-wishlist/templates/link-to-wishlist-page.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

pbo-move-to-wishlist-for-yith-woocommerce-wishlist/pbo-move-to-wishlist.php 69% from 13 tests

The main PHP script in "PBO Move to Wishlist for YITH WooCommerce Wishlist" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "4.0.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pbo-move-to-wishlist-for-yith-woocommerce-wishlist.php" instead of "pbo-move-to-wishlist.php")

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 plugin161 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43551127
PO File15030
XML1004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin