90% resolve-for-woocommerce

Code Review | Resolve for WooCommerce

WordPress plugin Resolve for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: resolve-for-wooco...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2021
  • Latest release: Feb 16, 2023
  • Number of updates: 3
  • Update frequency: every 159.0 days
  • Top authors: pbarrington (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /536 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.03MB] [CPU: ▼4.32ms] Passed 4 tests

A check of server-side resources used by Resolve for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.41 ▼1.02
Dashboard /wp-admin3.34 ▲0.0348.44 ▼7.59
Posts /wp-admin/edit.php3.45 ▲0.0951.93 ▲0.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.24 ▼9.27
Media Library /wp-admin/upload.php3.26 ▲0.0343.04 ▲3.92

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Resolve for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.67 ▲0.021.77 ▼0.0442.51 ▼1.60
Dashboard /wp-admin2,195 ▲185.54 ▼0.1384.93 ▼1.4641.39 ▲6.12
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0138.77 ▲2.3736.68 ▲1.21
Add New Post /wp-admin/post-new.php1,526 ▼923.21 ▲5.01682.86 ▲21.6448.34 ▼16.69
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.0396.35 ▼1.4546.39 ▲4.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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: woocommerce, resolve, gateway, payment

resolve-for-woocommerce/resolve-for-woocommerce.php 92% from 13 tests

"Resolve for WooCommerce" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 not allowed as they can serve as attack vectors
No dangerous file extensions were detected789 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7163351726
JavaScript415363

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.00
▷ Minimum class complexity4.00
▷ Maximum class complexity43.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods49
▷ Static methods2551.02%
▷ Public methods4591.84%
▷ Protected methods12.04%
▷ Private methods36.12%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants6
▷ Global constants6100.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
No PNG files were detected