84% raagaadrm-integration-for-woocomerce

Code Review | RaagaaDRM - Integration with Woocomerce

WordPress plugin RaagaaDRM - Integration with Woocomerce scored84%from 54 tests.

About plugin

  • Plugin page: raagaadrm-integra...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.4
  • WordPress version: 6.3.1
  • First release: Jul 13, 2020
  • Latest release: Nov 18, 2020
  • Number of updates: 10
  • Update frequency: every 13.1 days
  • Top authors: raagaa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /367 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
Installer ran successfully

Server metrics [RAM: ▼0.85MB] [CPU: ▼25.82ms] Passed 4 tests

Server-side resources used by RaagaaDRM - Integration with Woocomerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.00 ▲0.10
Dashboard /wp-admin3.39 ▲0.0848.47 ▼5.63
Posts /wp-admin/edit.php3.44 ▲0.0847.50 ▼4.23
Add New Post /wp-admin/post-new.php2.26 ▼3.636.91 ▼93.53
Media Library /wp-admin/upload.php3.31 ▲0.0839.34 ▲1.01

Server storage [IO: ▲0.08MB] [DB: ▲0.31MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for RaagaaDRM - Integration with Woocomerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.161.81 ▼0.0443.18 ▲0.69
Dashboard /wp-admin2,198 ▲215.62 ▲0.0285.47 ▼10.2939.16 ▼7.99
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0035.03 ▼1.4030.46 ▼5.28
Add New Post /wp-admin/post-new.php1,531 ▼123.08 ▼0.20659.53 ▲12.8050.69 ▼3.38
Media Library /wp-admin/upload.php1,400 ▼04.31 ▲0.10107.06 ▲11.7746.99 ▲2.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 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_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/raagaadrm-integration-for-woocomerce/woocommerce_raagaadrm.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No plugin tags provided

raagaadrm-integration-for-woocomerce/woocommerce_raagaadrm.php 92% from 13 tests

This is the main PHP file of "RaagaaDRM - Integration with Woocomerce" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("raagaadrm-integration-for-woocomerce.php" instead of "woocommerce_raagaadrm.php")

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 detected1,917 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS243481,253
PHP121269458
JavaScript24712206

PHP code Passed 2 tests

Analyzing 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.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffffff_256x240.png3.19KB3.49KB0.00%
css/images/ui-icons_555555_256x240.png3.20KB3.50KB0.00%
css/images/ui-icons_777777_256x240.png3.19KB3.49KB0.00%