83% planyo-woocommerce-integration

Code Review | Planyo online reservations - WooCommerce integration

WordPress plugin Planyo online reservations - WooCommerce integration scored 83% from 54 tests.

About plugin

  • Plugin page: planyo-woocommerc...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.0.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2018
  • Latest release: Dec 28, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: zwieciu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 816 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Planyo online reservations - WooCommerce integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0525.20 ▼18.74
Dashboard /wp-admin3.33 ▲0.0350.33 ▲5.86
Posts /wp-admin/edit.php3.39 ▲0.0364.55 ▲18.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.29 ▼1.47
Media Library /wp-admin/upload.php3.26 ▲0.0334.40 ▲2.22
Planyo WooCommerce Integration /wp-admin/options-general.php?page=planyowc3.2330.57

Server storage [IO: ▲0.03MB] [DB: ▲0.33MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Planyo online reservations - WooCommerce integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,473 ▼28414.45 ▲0.020.50 ▼1.5316.22 ▼35.16
Dashboard /wp-admin2,215 ▲244.85 ▼0.17104.37 ▼0.0939.79 ▼5.95
Posts /wp-admin/edit.php2,098 ▲91.99 ▼0.0744.59 ▲0.3139.75 ▲6.16
Add New Post /wp-admin/post-new.php1,533 ▲1223.17 ▼0.31649.37 ▲24.2464.10 ▲18.66
Media Library /wp-admin/upload.php1,394 ▲124.24 ▼0.0494.04 ▼2.6941.66 ▼0.15
Planyo WooCommerce Integration /wp-admin/options-general.php?page=planyowc8262.0323.7326.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/planyo-woocommerce-integration/planyowc.php:152

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

planyo-woocommerce-integration/planyowc.php 85% from 13 tests

The main file in "Planyo online reservations - WooCommerce integration" 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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 293 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("planyo-woocommerce-integration.php" instead of "planyowc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin376 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15024323
JavaScript17651
CSS1001
HTML1001

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin