89% emma-woo-addon

Code Review | Emma for WooCommerce

WordPress plugin Emma for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: emma-woo-addon
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.5
  • WordPress version: 6.3.1
  • First release: Jun 13, 2017
  • Latest release: Nov 2, 2017
  • Number of updates: 14
  • Update frequency: every 10.4 days
  • Top authors: advisant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /789 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼6.17ms] Passed 4 tests

Analyzing server-side resources used by Emma for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2247.82 ▲0.52
Dashboard /wp-admin3.52 ▲0.2252.10 ▼1.89
Posts /wp-admin/edit.php3.63 ▲0.2855.91 ▲3.67
Add New Post /wp-admin/post-new.php6.10 ▲0.2189.67 ▼25.78
Media Library /wp-admin/upload.php3.44 ▲0.2141.22 ▲2.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: 5 new tables, 6 new options
New tables
wp_emma_mapfield
wp_emma_customerdetails
wp_emma_cronschedule
wp_emma_wpfield
wp_emma_flag
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Emma for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.73 ▲0.452.18 ▲0.4743.52 ▲2.14
Dashboard /wp-admin2,206 ▲265.62 ▼0.0190.52 ▲1.0539.76 ▲0.94
Posts /wp-admin/edit.php2,115 ▲122.03 ▲0.0136.28 ▼5.8636.78 ▲1.97
Add New Post /wp-admin/post-new.php1,535 ▲923.24 ▲0.28657.39 ▲0.7855.82 ▲6.17
Media Library /wp-admin/upload.php1,417 ▲144.20 ▲0.04109.36 ▲7.3446.78 ▲0.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output 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
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

emma-woo-addon/emma-mail.php 85% from 13 tests

The main PHP script in "Emma for WooCommerce" version 1.2.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("emma-woo-addon.php" instead of "emma-mail.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,553 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP85439953,422
JavaScript1361131

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity47.14
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods185
▷ Static methods10.54%
▷ Public methods17393.51%
▷ Protected methods84.32%
▷ Private methods42.16%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin