84% keensalon-companion

Code Review | KeenSalon Companion

WordPress plugin KeenSalon Companion scored84%from 54 tests.

About plugin

  • Plugin page: keensalon-companion
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.3
  • WordPress version: 6.3.1
  • First release: May 18, 2020
  • Latest release: May 18, 2020
  • Number of updates: 2
  • Update frequency: every 33.0 days
  • Top authors: keendevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /392 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
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼10.18ms] Passed 4 tests

Server-side resources used by KeenSalon Companion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.3648.50 ▲1.25
Dashboard /wp-admin3.91 ▲0.2753.81 ▼22.83
Posts /wp-admin/edit.php3.96 ▲0.2853.34 ▲2.30
Add New Post /wp-admin/post-new.php6.45 ▲0.3090.39 ▼7.86
Media Library /wp-admin/upload.php3.77 ▲0.2842.19 ▼11.26
All Packages /wp-admin/edit.php?post_type=package3.8744.19
Package Categories /wp-admin/edit-tags.php?taxonomy=package_category&post_type=package3.7640.14
Add New Package /wp-admin/post-new.php?post_type=package3.8148.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 13 new options
New WordPress options
widget_keensalon_card_widget
theysaidso_admin_options
keensaloncompanion_version
widget_recent-comments
widget_keensalon_package_widget
keensalon_companion_install_date
can_compress_scripts
widget_keensalon_section_title_widget
widget_keensalon_recent_post
widget_keensalon_feature_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by KeenSalon Companion
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15213.47 ▼0.918.51 ▲6.5640.47 ▼3.03
Dashboard /wp-admin2,230 ▲505.68 ▼0.0190.23 ▼3.9638.28 ▼1.28
Posts /wp-admin/edit.php2,141 ▲412.05 ▲0.0437.05 ▼1.4732.14 ▼5.58
Add New Post /wp-admin/post-new.php1,559 ▲2723.11 ▲0.06645.31 ▼48.8548.80 ▼7.86
Media Library /wp-admin/upload.php1,435 ▲324.23 ▼0.06106.28 ▼7.2644.00 ▼3.81
All Packages /wp-admin/edit.php?post_type=package1,1132.0232.3231.69
Package Categories /wp-admin/edit-tags.php?taxonomy=package_category&post_type=package1,3152.1626.8330.28
Add New Package /wp-admin/post-new.php?post_type=package1,5912.6858.6657.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 13 options
    • widget_keensalon_recent_post
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_keensalon_package_widget
    • keensaloncompanion_version
    • widget_keensalon_section_title_widget
    • widget_keensalon_feature_widget
    • widget_recent-comments
    • keensalon_companion_install_date
    • ...

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 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/post-new.php?post_type=package
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=package:405:38)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=package
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Plugin backend) image not found
Please take inspiration from this readme.txt

keensalon-companion/keensalon-companion.php Passed 13 tests

The main file in "KeenSalon Companion" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
5 extremely useful custom widgets and package post type to create an engaging website.

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
Success! There were no dangerous files found in this plugin1,016 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP15220281887
CSS43311127
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.55
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods42
▷ Static methods49.52%
▷ Public methods4095.24%
▷ Protected methods24.76%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/no-featured-img.png0.33KB0.38KB0.00%
assets/images/ico-delete.png0.65KB0.72KB0.00%