84% c4d-woo-wishlist

Code Review | C4D Woo Wishlist

WordPress plugin C4D Woo Wishlist scored84%from 54 tests.

About plugin

  • Plugin page: c4d-woo-wishlist
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: Jul 24, 2018
  • Number of updates: 16
  • Update frequency: every 32.6 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Server-side resources used by C4D Woo Wishlist
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.84 ▼1.02
Dashboard /wp-admin3.31 ▲0.0144.14 ▲2.14
Posts /wp-admin/edit.php3.36 ▲0.0143.41 ▼5.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.38 ▼6.82
Media Library /wp-admin/upload.php3.24 ▲0.0135.07 ▲3.32

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

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

Browser metrics Passed 4 tests

Checking browser requirements for C4D Woo Wishlist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲19513.80 ▼0.499.50 ▲7.6136.71 ▼12.49
Dashboard /wp-admin2,206 ▲185.76 ▲0.9097.18 ▼12.9941.41 ▲0.38
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0438.79 ▲0.8535.15 ▲1.53
Add New Post /wp-admin/post-new.php1,528 ▲1418.17 ▲0.63626.44 ▼92.1455.80 ▲0.20
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0196.40 ▼2.8342.24 ▲1.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/c4d-woo-wishlist/templates/default.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-woo-wishlist/c4d-woo-wishlist.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt is a good inspiration

c4d-woo-wishlist/c4d-woo-wishlist.php Passed 13 tests

This is the main PHP file of "C4D Woo Wishlist" version 2.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
33 characters long description:
Add quickview button for product.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin272 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP21610172
JavaScript214499
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin