78% woo-customer-feedback-mail

Code Review | Woo Customer Feedback Mail

WordPress plugin Woo Customer Feedback Mail scored78%from 54 tests.

About plugin

  • Plugin page: woo-customer-feed...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2016
  • Latest release: Jun 16, 2016
  • Number of updates: 13
  • Update frequency: every 0.5 days
  • Top authors: hiren1094 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by Woo Customer Feedback Mail
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.81 ▼2.78
Dashboard /wp-admin3.32 ▲0.0144.84 ▼5.74
Posts /wp-admin/edit.php3.37 ▲0.0144.11 ▼0.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.11 ▲4.82
Media Library /wp-admin/upload.php3.24 ▲0.0137.51 ▲6.14
Customer FeedBack Send /wp-admin/admin.php?page=wcfm-customer-feedback-mail3.1828.37

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Customer Feedback Mail
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.57 ▼1.051.76 ▲0.0741.92 ▼0.95
Dashboard /wp-admin2,206 ▲154.79 ▼0.23109.39 ▲2.4543.60 ▼0.46
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0038.48 ▲2.7335.85 ▼1.72
Add New Post /wp-admin/post-new.php1,542 ▲2818.14 ▲0.62642.54 ▼19.1949.62 ▼3.92
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.01107.39 ▲3.8946.61 ▲2.26
Customer FeedBack Send /wp-admin/admin.php?page=wcfm-customer-feedback-mail7801.536.9127.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wcfm-customer-feedback-mail
    • > Notice in wp-content/plugins/woo-customer-feedback-mail/wcfm-admin-field.php+308
    Undefined index: orderstatus

SRP 50% from 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 following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/woo-customer-feedback-mail/wcfm-admin-init.php:20
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-customer-feedback-mail/wcfm-admin-field.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-customer-feedback-mail/wcfm-admin-field.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woo-customer-feedback-mail/wcfm-admin-field.php on line 7

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: customer mail, status mail, send mail, user mail

woo-customer-feedback-mail/wcfm-admin-init.php 92% from 13 tests

The main PHP script in "Woo Customer Feedback Mail" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-customer-feedback-mail.php" instead of "wcfm-admin-init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin212 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP213242212

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.00
▷ Minimum class complexity8.00
▷ Maximum class complexity12.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin