90% oxygen-mydata

Code Review | Oxygen MyData for WooCommerce

WordPress plugin Oxygen MyData for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: oxygen-mydata
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 5, 2022
  • Latest release: Aug 2, 2023
  • Number of updates: 20
  • Update frequency: every 18.1 days
  • Top authors: oxygensuite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,889 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Oxygen MyData for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.58 ▼5.68
Dashboard /wp-admin3.32 ▼0.0347.37 ▼13.45
Posts /wp-admin/edit.php3.37 ▲0.0147.47 ▼0.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.60 ▼13.75
Media Library /wp-admin/upload.php3.24 ▲0.0134.17 ▲1.63

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Oxygen MyData for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.601.54 ▼0.1337.87 ▼6.39
Dashboard /wp-admin2,206 ▲185.91 ▲1.0295.72 ▼19.8139.08 ▼5.31
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0235.35 ▼1.5130.08 ▼4.94
Add New Post /wp-admin/post-new.php1,533 ▲1423.43 ▲0.26632.24 ▼19.5446.46 ▼4.08
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0693.89 ▼5.4340.19 ▼4.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce invoices, mydata, invoices, oxygen, invoices greece

oxygen-mydata/oxygen-mydata.php 92% from 13 tests

Analyzing the main PHP file in "Oxygen MyData for WooCommerce" version 1.0.8
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,276 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP67536102,015
PO File1113133261

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity86.50
▷ Minimum class complexity2.00
▷ Maximum class complexity174.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity85.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods77
▷ Static methods5470.13%
▷ Public methods6989.61%
▷ Protected methods00.00%
▷ Private methods810.39%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.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 images were found in this plugin