90% woocommerce-admin-email-processing-products

Code Review | woocommerce admin email processing products (waepp)

WordPress plugin woocommerce admin email processing products (waepp) scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-admin...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2015
  • Latest release: Jan 22, 2015
  • Number of updates: 17
  • Update frequency: every 0.7 days
  • Top authors: Myum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.12ms] Passed 4 tests

This is a short check of server-side resources used by woocommerce admin email processing products (waepp)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.62 ▼8.62
Dashboard /wp-admin3.38 ▲0.0845.10 ▼0.91
Posts /wp-admin/edit.php3.49 ▲0.1447.09 ▲0.74
Add New Post /wp-admin/post-new.php5.96 ▲0.0889.26 ▼7.70
Media Library /wp-admin/upload.php3.30 ▲0.0837.82 ▲4.10
Waepp /wp-admin/tools.php?page=Waepp3.2426.29

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for woocommerce admin email processing products (waepp)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.41 ▼0.901.57 ▼0.3536.38 ▼14.20
Dashboard /wp-admin2,210 ▲254.82 ▼0.06112.29 ▲7.3940.71 ▼2.76
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.0333.26 ▼3.3032.71 ▲2.73
Add New Post /wp-admin/post-new.php1,536 ▲823.33 ▲0.15657.09 ▼0.3060.33 ▲0.43
Media Library /wp-admin/upload.php1,392 ▲14.20 ▼0.0296.04 ▼4.6240.84 ▼1.82
Waepp /wp-admin/tools.php?page=Waepp6581.147.1819.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected 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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: ecommerce, email, onhold, quantity, woocommerce...

woocommerce-admin-email-processing-products/woocommerce-admin-email-processing-products.php 92% from 13 tests

The principal PHP file in "woocommerce admin email processing products (waepp)" v. 1.1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin787 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP999569787

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.43
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods4391.49%
▷ Protected methods00.00%
▷ Private methods48.51%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin