10% custom-wishlist

Code Review | Custom Wishlist

WordPress plugin Custom Wishlist scored 10% from 54 tests.

About plugin

  • Plugin page: custom-wishlist
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.3
  • WordPress version: 5.8.1
  • First release: Aug 3, 2015
  • Latest release: Aug 3, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: alancf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,170 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/custom-wishlist/includes/class_wishlist.php+5
    Methods with the same name as their class will not be constructors in a future version of PHP; CWL_Wishlist has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼186.92ms] Passed 4 tests

Analyzing server-side resources used by Custom Wishlist
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼1.054.85 ▼28.53
Dashboard /wp-admin1.81 ▼1.255.67 ▼41.03
Posts /wp-admin/edit.php1.81 ▼1.306.57 ▼40.39
Add New Post /wp-admin/post-new.php1.81 ▼3.635.28 ▼637.72
Media Library /wp-admin/upload.php1.81 ▼1.195.54 ▼28.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, no new options
New tables
wp_cwl_wishlists

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Wishlist
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲22016.26 ▲0.8013.01 ▲3.7946.94 ▲1.32
Dashboard /wp-admin2,970 ▲366.00 ▲0.03143.59 ▼11.23108.71 ▼2.83
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0170.46 ▼3.7083.31 ▼7.85
Add New Post /wp-admin/post-new.php1,504 ▼17918.61 ▼0.17377.87 ▼23.28101.79 ▼12.92
Media Library /wp-admin/upload.php1,810 ▲35.05 ▲0.03167.47 ▲16.67110.59 ▼6.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/custom-wishlist/includes/class_wishlist.php+5
    Methods with the same name as their class will not be constructors in a future version of PHP; CWL_Wishlist has a deprecated constructor
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_cwl_wishlists

Smoke tests 75% 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 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/custom-wishlist/custom-wishlist.php on line 36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-wishlist/custom-wishlist.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
3 plugin tags: free, wishlist, custom post type

custom-wishlist/custom-wishlist.php Passed 13 tests

"Custom Wishlist" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
39 characters long description:
Create wishlists with custom post types

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
There were no executable files found in this plugin345 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP29023167
CSS111079
PO File2222670
JavaScript12029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity6.00
▷ Maximum class complexity8.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected