79% categorize-your-wishlist-for-woocomerceposts-custom-post-types

Code Review | Categorize your Wishlist for Woocomerce,Posts & Custom Post Types

WordPress plugin Categorize your Wishlist for Woocomerce,Posts & Custom Post Types scored79%from 54 tests.

About plugin

  • Plugin page: categorize-your-w...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.2
  • WordPress version: 6.3.1
  • First release: May 9, 2018
  • Latest release: Dec 22, 2018
  • Number of updates: 4
  • Update frequency: every 56.8 days
  • Top authors: excellentwebworld123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,570 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼8.77ms] Passed 4 tests

A check of server-side resources used by Categorize your Wishlist for Woocomerce,Posts & Custom Post Types
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1044.02 ▼1.60
Dashboard /wp-admin3.42 ▲0.0853.77 ▼15.57
Posts /wp-admin/edit.php3.54 ▲0.1865.42 ▲11.85
Add New Post /wp-admin/post-new.php6.00 ▲0.1288.58 ▼20.93
Media Library /wp-admin/upload.php3.32 ▲0.1042.66 ▲3.02

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 2 new tables, 7 new options
New tables
wp_favourite_posts
wp_favourite_categories
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
cwwpcpt_db_version
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Categorize your Wishlist for Woocomerce,Posts & Custom Post Types
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,067 ▲30615.13 ▲0.717.08 ▲5.2947.19 ▲3.67
Dashboard /wp-admin2,371 ▲1916.38 ▲0.71109.37 ▲18.9040.68 ▼1.42
Posts /wp-admin/edit.php2,293 ▲1933.55 ▲1.5252.41 ▲13.1533.59 ▼0.36
Add New Post /wp-admin/post-new.php1,713 ▲18722.34 ▼0.66666.72 ▼28.0440.30 ▼16.29
Media Library /wp-admin/upload.php1,433 ▲334.35 ▲0.1384.01 ▼30.4946.22 ▼1.61

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
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_favourite_posts
    • wp_favourite_categories
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • cwwpcpt_db_version
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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 your attention:
  • Screenshots: Add an image for screenshot #6 (Help)
Please take inspiration from this readme.txt

categorize-your-wishlist-for-woocomerceposts-custom-post-types/categorize-wishlist-woocomerce-posts-custom-post-types.php 92% from 13 tests

The main file in "Categorize your Wishlist for Woocomerce,Posts & Custom Post Types" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("categorize-your-wishlist-for-woocomerceposts-custom-post-types.php" instead of "categorize-wishlist-woocomerce-posts-custom-post-types.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,097 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4511743
CSS2107224
PO File1343893
JavaScript24037

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.25
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%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/hearts.png16.08KB0.92KB▼ 94.29%
images/shopping-cart.png0.65KB0.69KB0.00%
images/nested.png14.26KB0.22KB▼ 98.47%