77% wishlist-with-hearts

Code Review | Wishlist with hearts

WordPress plugin Wishlist with hearts scored77%from 54 tests.

About plugin

  • Plugin page: wishlist-with-hearts
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2019
  • Latest release: Oct 25, 2021
  • Number of updates: 12
  • Update frequency: every 55.6 days
  • Top authors: rajarora795 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,045 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Wishlist with hearts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.39 ▼2.30
Dashboard /wp-admin3.31 ▲0.0050.14 ▼3.72
Posts /wp-admin/edit.php3.36 ▲0.0044.67 ▼0.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.78 ▼8.90
Media Library /wp-admin/upload.php3.23 ▲0.0036.09 ▼1.90

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Wishlist with hearts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.142.15 ▲0.1845.57 ▼7.99
Dashboard /wp-admin2,206 ▲155.90 ▲0.0197.30 ▼17.9439.65 ▼7.05
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0534.14 ▼0.2431.82 ▼2.70
Add New Post /wp-admin/post-new.php1,536 ▲1623.19 ▲0.06669.88 ▼16.5254.03 ▼3.53
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0596.47 ▼13.0043.41 ▼8.98

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
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_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wishlist-with-hearts/Wishlist-with-hearts.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wishlist-with-hearts/includes/wlwhplugin-activation-hooks.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wishlist-with-hearts/includes/rvp_shortcodes_view.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wishlist-with-hearts/shortcodes/wlwh_shortcode_view.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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 to be fixed:
  • Donate link: Invalid URI ("PayPal.me/rajarora795")
Please take inspiration from this readme.txt

wishlist-with-hearts/Wishlist-with-hearts.php 77% from 13 tests

The principal PHP file in "Wishlist with hearts" v. 2.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("wishlist-with-hearts.php" instead of "Wishlist-with-hearts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected10,855 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
CSS593162,683
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP204172811,566
JavaScript39627409

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.83
▷ Minimum class complexity2.00
▷ Maximum class complexity22.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions43
▷ Named functions3990.70%
▷ Anonymous functions49.30%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/heart.png0.39KB0.47KB0.00%