90% fruitware-woocommerce-oplatamd

Code Review | OPLATAMD for WooCommerce

WordPress plugin OPLATAMD for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: fruitware-woocomm...
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2015
  • Latest release: Oct 16, 2015
  • Number of updates: 8
  • Update frequency: every 3.3 days
  • Top authors: Fruitware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /896 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.08MB] [CPU: ▼2.60ms] Passed 4 tests

An overview of server-side resources used by OPLATAMD for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.39 ▼1.31
Dashboard /wp-admin3.39 ▲0.0849.53 ▼6.71
Posts /wp-admin/edit.php3.50 ▲0.1463.39 ▲12.31
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.73 ▼9.68
Media Library /wp-admin/upload.php3.31 ▲0.0841.09 ▲7.31

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for OPLATAMD for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.59 ▼0.631.82 ▼0.0549.07 ▲7.02
Dashboard /wp-admin2,206 ▲184.84 ▼0.06109.89 ▼3.5138.76 ▲1.12
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0140.18 ▼1.2437.48 ▲0.36
Add New Post /wp-admin/post-new.php1,514 ▼017.48 ▼0.44663.57 ▲30.8764.21 ▲13.99
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.02105.43 ▲9.2746.28 ▲3.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: payment getaway, oplatamd, woo commerce, woocommerce

fruitware-woocommerce-oplatamd/wc-oplatamd.php 92% from 13 tests

The main PHP file in "OPLATAMD for WooCommerce" ver. 0.1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("fruitware-woocommerce-oplatamd.php" instead of "wc-oplatamd.php")

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
No dangerous file extensions were detected394 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1100157394

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1260.00%
▷ Protected methods840.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
oplatamd.png0.87KB0.80KB▼ 7.52%