84% common-wish-and-bridal-lists

Code Review | Common Wish and Bridal Lists

WordPress plugin Common Wish and Bridal Lists scored84%from 54 tests.

About plugin

  • Plugin page: common-wish-and-b...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4.2
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Jul 22, 2020
  • Number of updates: 15
  • Update frequency: every 86.9 days
  • Top authors: briarinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,010 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.54ms] Passed 4 tests

An overview of server-side resources used by Common Wish and Bridal Lists
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.09 ▼3.92
Dashboard /wp-admin3.31 ▼0.0444.53 ▼15.65
Posts /wp-admin/edit.php3.36 ▲0.0045.25 ▼0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.17 ▼14.45
Media Library /wp-admin/upload.php3.23 ▲0.0032.36 ▲1.00

Server storage [IO: ▲1.62MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Common Wish and Bridal Lists
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.071.84 ▲0.1542.42 ▼0.64
Dashboard /wp-admin2,203 ▲186.01 ▲0.1596.37 ▼6.7738.62 ▼1.70
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0036.22 ▲0.3036.51 ▲1.97
Add New Post /wp-admin/post-new.php1,514 ▼1917.52 ▼5.74661.50 ▲54.9649.63 ▼3.28
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.0695.84 ▼4.2139.92 ▼2.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 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 take a closer look at the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Trait 'WB_Data' not found in wp-content/plugins/common-wish-and-bridal-lists/includes/base/class-wb-base.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WB_Base' not found in wp-content/plugins/common-wish-and-bridal-lists/includes/class-wb-bridal.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/common-wish-and-bridal-lists/includes/class-wb-setting.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/common-wish-and-bridal-lists/includes/class-wb-process.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WB_Base' not found in wp-content/plugins/common-wish-and-bridal-lists/includes/class-wb-wish.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: wedding list, wish list, add to wish list, woocommerce, wishlist...

common-wish-and-bridal-lists/wish-bridal-list.php 85% from 13 tests

The entry point to "Common Wish and Bridal Lists" version 1.3.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • 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 ("common-wish-and-bridal-lists.php" instead of "wish-bridal-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin16,108 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
JSON3004,863
CSS655953,953
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP12397586873
JavaScript34625143
Markdown127079

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits4
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes120.00%
Methods75
▷ Static methods34.00%
▷ Public methods4965.33%
▷ Protected methods1824.00%
▷ Private methods810.67%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/lib/components-jqueryui/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png0.32KB0.15KB▼ 53.40%
assets/lib/components-jqueryui/themes/smoothness/images/ui-icons_888888_256x240.png6.94KB4.18KB▼ 39.78%
assets/lib/components-jqueryui/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png0.26KB0.09KB▼ 66.79%
assets/lib/components-jqueryui/themes/smoothness/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
assets/lib/components-jqueryui/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png0.32KB0.16KB▼ 50.46%