83% woo-order-export-constant-contact

Code Review | Woo Order Export To Constant Contact (FREE)

WordPress plugin Woo Order Export To Constant Contact (FREE) scored83%from 54 tests.

About plugin

  • Plugin page: woo-order-export-...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2018
  • Latest release: Dec 13, 2022
  • Number of updates: 41
  • Update frequency: every 37.4 days
  • Top authors: amitwpdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /956 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.61ms] Passed 4 tests

Analyzing server-side resources used by Woo Order Export To Constant Contact (FREE)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.81 ▼13.00
Dashboard /wp-admin3.31 ▲0.0049.91 ▲3.97
Posts /wp-admin/edit.php3.36 ▲0.0052.17 ▼3.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.33 ▼7.17
Media Library /wp-admin/upload.php3.23 ▲0.0031.93 ▲1.14

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Order Export To Constant Contact (FREE)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.54 ▼0.594.38 ▲2.4445.35 ▲3.13
Dashboard /wp-admin2,200 ▲94.80 ▼1.07107.16 ▲3.7040.17 ▼4.74
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0046.24 ▲7.2231.87 ▼4.13
Add New Post /wp-admin/post-new.php1,542 ▲2318.27 ▼4.76647.45 ▼11.3550.54 ▼5.27
Media Library /wp-admin/upload.php1,385 ▼04.22 ▼0.0199.30 ▼6.1842.38 ▼4.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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)
Everything seems fine, however 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
The following issues need your attention
  • 2× 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/woo-order-export-constant-contact/includes/wps-cc-woo-admin.php:185
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/woo-order-export-constant-contact/index.php:12

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

woo-order-export-constant-contact/index.php 85% from 13 tests

The entry point to "Woo Order Export To Constant Contact (FREE)" version 1.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-order-export-constant-contact.php" instead of "index.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.4.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected510 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP46411319
SVG100146
CSS11026
JavaScript14019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1083.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/source/images/arrow_up.png1.03KB0.23KB▼ 77.65%
includes/source/images/arrow_down.png1.06KB0.24KB▼ 77.47%
includes/source/images/export.png2.95KB1.87KB▼ 36.60%
includes/source/images/tick.png0.64KB0.51KB▼ 20.25%