94% wishlist-shibainuit

Code Review | Wishlist ShibainuIT

WordPress plugin Wishlist ShibainuIT scored 94% from 54 tests.

About plugin

  • Plugin page: wishlist-shibainuit
  • Plugin version: 2.00
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.2
  • WordPress version: 5.8.1
  • First release: Jun 18, 2021
  • Latest release: Sep 25, 2021
  • Number of updates: 5
  • Update frequency: every 21.8 days
  • Top authors: coder618 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 100 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼138.95ms] Passed 4 tests

Server-side resources used by Wishlist ShibainuIT
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1945.47 ▲21.52
Dashboard /wp-admin3.13 ▲0.0849.96 ▼1.97
Posts /wp-admin/edit.php3.18 ▲0.0851.15 ▲1.94
Add New Post /wp-admin/post-new.php5.50 ▲0.07101.39 ▼552.91
Media Library /wp-admin/upload.php3.08 ▲0.0735.86 ▼2.85
Wishlist - Shibainu IT /wp-admin/options-general.php?page=sit-wishlist-setting3.0440.46

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Wishlist ShibainuIT: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,784 ▲18816.05 ▲0.5712.36 ▲3.9859.97 ▲6.90
Dashboard /wp-admin2,978 ▲476.13 ▲0.12145.63 ▲1.35107.55 ▼14.33
Posts /wp-admin/edit.php2,747 ▲82.70 ▼0.0069.54 ▼3.4894.05 ▼3.07
Add New Post /wp-admin/post-new.php1,687 ▲418.31 ▼0.22360.39 ▼61.13118.81 ▼8.31
Media Library /wp-admin/upload.php1,818 ▲145.01 ▼0.02169.94 ▲15.99130.29 ▲7.22
Wishlist - Shibainu IT /wp-admin/options-general.php?page=sit-wishlist-setting1,1102.1062.8576.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wishlist-shibainuit/templates/before-add-btn.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wishlist-shibainuit/inc/add-to-wishlist-btn.php:7
    • > PHP Notice
      Undefined variable: sit_wishlist_ids in wp-content/plugins/wishlist-shibainuit/templates/wishlist-render.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-shibainuit/inc/settings-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sit_get_wishlist_array() in wp-content/plugins/wishlist-shibainuit/templates/sit-my-wishlist-modal.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-shibainuit/inc/add-endpoint.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-shibainuit/inc/add-modal-frontend.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/wishlist-shibainuit/templates/wishlist-render.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wishlist-shibainuit/templates/after-add-btn.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-shibainuit/inc/ajax.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce wishlist, shibainuit wishlist, shibainu, custom wishlist, wishlist

wishlist-shibainuit/wishlist-shibainuit.php 92% from 13 tests

This is the main PHP file of "Wishlist ShibainuIT" version 2.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected769 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP1214872465
CSS1211152
JavaScript21916150
SVG2002

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.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions1588.24%
▷ Anonymous functions211.76%
Constants6
▷ Global constants6100.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.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png7.34KB7.57KB0.00%