83% wc-easynote

Code Review | Easy Note For WooCommerce

WordPress plugin Easy Note For WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: wc-easynote
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 27, 2022
  • Latest release: Aug 27, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: bigbenteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /911 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.02MB] [CPU: ▼4.67ms] Passed 4 tests

Analyzing server-side resources used by Easy Note For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.38 ▲3.14
Dashboard /wp-admin3.32 ▲0.0247.17 ▼2.44
Posts /wp-admin/edit.php3.37 ▲0.0248.42 ▼1.84
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.76 ▼17.55
Media Library /wp-admin/upload.php3.24 ▲0.0242.69 ▲10.14

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Note For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.39 ▼0.879.15 ▲7.1942.06 ▼0.36
Dashboard /wp-admin2,196 ▲255.54 ▼0.1786.38 ▼4.6139.60 ▼1.70
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0140.57 ▲3.8835.72 ▼3.93
Add New Post /wp-admin/post-new.php1,530 ▲423.14 ▼0.45695.95 ▲49.2952.22 ▲1.81
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.09106.47 ▲4.9747.52 ▲4.45

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

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

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wc-easynote/admin/partials/easy-note-for-wc-admin-display.php
    • > /wp-content/plugins/wc-easynote/public/partials/easy-note-for-wc-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: woocommerce, comments

wc-easynote/easy-note-for-woocommerce.php 77% from 13 tests

The principal PHP file in "Easy Note For WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-easynote.php" instead of "easy-note-for-woocommerce.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin372 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12137519269
JavaScript2247091
CSS24812

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin